[rrd-users] 1 hour graph on Routers2
Steve Shipway
s.shipway at auckland.ac.nz
Wed Aug 26 00:30:42 CEST 2015
The 6hour graph generated by the Routers2 frontend for MRTG/RRDtool when
the interval is <5min is defined in the code, as this corresponds to 400
data points (the default graph width) at a 1min interval.
If you have a shorter interval, as in your case, you might want to have a
shorter graph. In order to do this, you would need to modify the code for
the '6' graph type to support it.
- The "6 hour" description would need to be modified in
initlabels() around line 150
- The default resolution, interval and seconds would need to be
changed around line 497 and 7275
- The interval calculations around line 3903 and 8675 would need to
be altered
- The graph parameters areound 5012, 5020, 6731 and 6744 would need
to change
- The scale label at 6601
- The x-axis label definitions at 6873
These are the main ones I can remember; you can see that it is fairly
complex, as it is not just giving the graph data width, but tailoring this
to the particular graph resolution and so on.
Note that you could simply make a very large graph of 6h width and just look
more closely at the detail.
Steve
Steve Shipway
<mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz
(GNU Terry Pratchett)
From: Jimmy Patel [mailto:jimmy at Brocade.com]
Sent: Wednesday, 26 August 2015 4:18 a.m.
To: Steve Shipway; rrd-users at lists.oetiker.ch
Subject: 1 hour graph on Routers2
Hello, I am trying to get a graph smaller than 6hrs on my routers2 cgi. The
way I have it set up right now is that it is polling and updating every 15
seconds. Because of this, I would like to get graph with a smaller period on
the x-axis so it can be easier to visualize what is happening to my network.
Would this be something tht can be done on routers2 and what would I have to
do to change the 6hr graph to be a 1 or 2 hour graph?
Thanks,
Jimmy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20150825/04638b58/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 8327 bytes
Desc: not available
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20150825/04638b58/attachment-0001.bin>
More information about the rrd-users
mailing list