Summary | RRDTool Graphing |
Queue | Nic |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | mbydalek (at) compunetconsulting (dot) com |
Created | 02/07/2005 (7525 days ago) |
Due | |
Updated | 03/19/2005 (7485 days ago) |
Assigned | |
Resolved | 03/19/2005 (7485 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
parse, so I'm hoping getting them into CVS will encourage you/someone
to continue working on them, since Nic doesn't see a lot of
development cycles at the moment.
New Attachment: RRDTool.tar.gz
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ RRDTool Graphing
Queue ⇒ Nic
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