[Tickets #1319] NEW: RRDTool Graphing

bugs at bugs.horde.org bugs at bugs.horde.org
Mon Feb 7 08:31:41 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1319
-----------------------------------------------------------------------
 Ticket     | 1319
 Created By | mbydalek at compunetconsulting.com
 Summary    | RRDTool Graphing
 Queue      | Nic
 State      | New
 Priority   | 1. Low
 Type       | Enhancement
 Owners     | 
-----------------------------------------------------------------------


mbydalek at compunetconsulting.com (2005-02-07 08:31) wrote:

Here's my patchset to allow for using RRDTool to graph SNMPCustom data.

Of course, I don't expect it to be perfect, but since there is no standard
PHP module for RRDTool (besides the contrib one) and due to RRDTool's highly
customizability, I had to try and make it as generic as possible.

I do need to add some explanation of the $rrdtool parameters in the
devices.php, so here it is:
The actual index is the data source name that's referenced in rrdtool
-file: The filename of the .rrd to use
-name: The legend name on the graph for that data
-color: The color of the data on the graph
-line: The type of line to use while graphing, can be LINE{1|2|3}, AREA,
STACK,
-unit: The unit to use in the legend
-calc: Any extra calculations to the data to format it correctly, in RPN
format.  For now, if you want to use a calc, you have to start it with a
comma.  A todo could make this not the case.

To start, setup all the necessary items in devices.php, and then run
scripts/createRRDFiles.php to setup and create the .rrd files according to
what was specified earlier.

After that, just cron the statusmonitor.php script and enjoy.

Of course, let me know if there's something that could be done better, or if
there's a problem with something I wrote.  I'd be more than happy to fix
it!

Thanks.

-Mike




More information about the bugs mailing list