6.0.0-git
2019-03-24

[#1319] RRDTool Graphing
Summary RRDTool Graphing
Queue Nic
Type Enhancement
State Resolved
Priority 1. Low
Owners
Requester mbydalek (at) compunetconsulting (dot) com
Created 2005-02-07 (5158 days ago)
Due
Updated 2005-03-19 (5118 days ago)
Assigned
Resolved 2005-03-19 (5118 days ago)
Milestone
Patch No

History
2005-03-19 04:43:16 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.
2005-02-08 08:42:44 Jan Schneider State ⇒ Accepted
 
2005-02-07 16:32:10 mbydalek (at) compunetconsulting (dot) com Comment #2
New Attachment: RRDTool.tar.gz Download
Reply to this comment
And here are the files ...
2005-02-07 16:31:41 mbydalek (at) compunetconsulting (dot) com Comment #1
Type ⇒ Enhancement
State ⇒ New
Priority ⇒ 1. Low
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