[mrtg] need some rrd modifications for x-axis while using mrtg

Steve Shipway s.shipway at auckland.ac.nz
Thu Apr 21 10:23:08 CEST 2011

Whether you use Native mode MRTG, Routers2 or 14all, I believe it is not possible to customise the X-axis labels in this way without modifying the code.

If you use Routers2 as your frontend, and are comfortable with modifying the code yourself, then I can point you in the direction of which area you will need to change.  Otherwise, you'll need to use something like rrdcgi and specify the complete RRDtool command line yourself...


Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
s.shipway at auckland.ac.nz<mailto:s.shipway at auckland.ac.nz>
Ph: +64 9 373 7599 ext 86487

From: mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch [mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] on behalf of Amit Jathar [amit.jathar at alepo.com]
Sent: Thursday, 21 April 2011 6:34 p.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] need some rrd modifications for x-axis while using mrtg


I am using MRTG & can see beautiful graphs for traffic on the interfaces. It’s a very nice tool, Thanks a lot … :)

I can see the X-axis is scaled to show the grid lines for every two hrs. ( I think it’s a default time)
I want to see the grid lines every 10 minutes.

I saw the configuration on the link : http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html#___top
--x-grid MINUTE:10:HOUR:1:HOUR:4:0:%X
This places grid lines every 10 minutes, major grid lines every hour, and labels every 4 hours. The labels are placed under the major grid lines as they specify exactly that time.

I think this configuration cannot be written in the mrtg.cfg file.
I could not find where exactly we can put this configuration, so that I will see the grid lines for 10 minutes.

Any help on this issue ?


This email (message and any attachment) is confidential and may be privileged. If you are not certain that you are the intended recipient, please notify the sender immediately by replying to this message, and delete all copies of this message and attachments. Any other use of this email by you is prohibited.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20110421/bff2b31b/attachment.htm 

More information about the mrtg mailing list