[mrtg] setting floor value for graphs

Steve Shipway s.shipway at auckland.ac.nz
Sat Jan 26 00:01:48 CET 2013


If you are using MRTG/RRD with the routers2.cgi frontend, then you can use the directive

routers.cgi*LowerLimit[xxxx]: yyyy

to set the graph lower Y-axis range to yyyy for tearget xxxx.  You can also combine this with

routers.cgi*Options[xxxx]: rigid

which will prevent the axis from auto-extending, even if the value extends to less that the set lower limit. Similarly, there is an UpperLimit directive, and of course the MaxBytes value (upperlimit defaults to maxbytes if you have rigid, and to 0.1 if you do not)

Steve

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 Kevin Carmical [KevinC at uca.edu]
Sent: Saturday, 26 January 2013 4:33 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] setting floor value for graphs

Hello all.
I'm using mrtg to monitor our datacenter's temperature with some AVTech temp sensors.
The sensors return data as a four-digit integer, so I've used the Factor option to get the correct temp value for use in the graphs.
I would like to have the graphs show *only* values above 60F; I don't expect our datacenter to suddenly cool itself, so I'm really only interested in the high ends of the scale. Is there a way to have mrtg set a floor value on the graphs so as to raise the minimum from 0? I didn't see an obvious way to do this in the documentation. I'd really like for it to set the graphs to only display from 60F-90F.

Thanks!

K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20130125/21e1a058/attachment.htm 


More information about the mrtg mailing list