6.0.0-beta1
9/15/25

[#1319] RRDTool Graphing
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

History
03/19/2005 04:43:16 AM Chuck Hagenbuch Comment #3
State ⇒ Resolved
Reply to this comment
I've done basic cleanup on these patches and committed them - they all 
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.
02/08/2005 08:42:44 AM Jan Schneider State ⇒ Accepted
 
02/07/2005 04:32:10 PM mbydalek (at) compunetconsulting (dot) com Comment #2
New Attachment: RRDTool.tar.gz Download
Reply to this comment
And here are the files ...
02/07/2005 04:31:41 PM mbydalek (at) compunetconsulting (dot) com Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ RRDTool Graphing
Queue ⇒ Nic
Reply to this comment
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

Saved Queries