[mrtg] monitoring system load with floating point numbers

Matt Engen matt at Magma-DA.COM
Tue Dec 5 05:38:27 MET 2000


I have been using mrtg for several months to monitor traffic on over
50 machines. I have decided to expand my use to system load. It is
working. However, system load is returned using 2 decimal places and
mrtg will only use the whole number. This causes the output graphs
to be off. For example:
>snmpget <my_host> public .
enterprises.ucdavis.laTable.laEntry.laLoad.2 = 3.17

Here the load returned is 3.17. Yet mrtg will only show the "3". If the 
return value is 3.99, mrtg will still only use the 3. This is not very helpful.
I have gone through all the documentation and mailing lists to
no avail. Actually, I saw one post that implied I should upgrade. So,
I just upgraded to version 2.94. This still did not help. I am running
on a Solaris 7 machine (sparc). In my mrtg.cfg file, I use the following:

Target[my_host]: at my_host
MaxBytes[my_host]: 10
AbsMax[my_host]: 200
Options[my_host]: growright,gauge,integer,nopercent
Title[my_host]: Load Average for my_host
PageTop[my_host]: <H1>Load Average for my_host</H1>
PageFoot[my_host]: <HR size=2 noshade>This page is managed by: <A HREF="mail
to:matt at magma-da.com"><I>Matt Engen*</I>
YLegend[my_host]: Load
Legend1[my_host]: load
Legend2[my_host]: load
LegendI[my_host]: Avg:
LegendO[my_host]: Avg:

The "integer" under options seems to stick out. However, when I take this out I get Kb/s which of course is not useful for this measurement. Has anyone solved this problem?

Thanks in advance for your help.


Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list