[mrtg] Re: monitoring system load with floating point numbers
Daniel R . Kilbourne
drk at voyager.net
Tue Dec 5 06:23:40 MET 2000
yes. there are 2 options.
First, the easy one: multiply the value you get by 100 (and make sure to point that out on the graph)
ie:
Target[my_host]: 1.3.6.1.4.1.2021.10.1.3.2&1.3.6.1.4.1.2021.10.1.3.2:public at my_host * 100
MaxBytes[my_host]: 1000
AbsMax[my_host]: 20000
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
ShortLegend[my_host]:
Legend1[my_host]: load (x 100)
Legend2[my_host]: load (x 100)
LegendI[my_host]: Avg:
LegendO[my_host]: Avg:
Second, the slightly more involved way would be to get rrdtool installed and use it (http://www.rrdtool.org)
as the replacement for rateup. It could then handle non-integer values.
Matt Engen extolled:
>
> Hi,
>
> 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 .1.3.6.1.4.1.2021.10.1.3.2
> 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]: 1.3.6.1.4.1.2021.10.1.3.2&1.3.6.1.4.1.2021.10.1.3.2:public 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
> ShortLegend[my_host]:
> 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.
>
> -Matt
>
--
--------------------------------
Daniel R. Kilbourne
daniel.kilbourne at voyager.net
Network Engineering
Voyager.net - A CoreComm Company
________________________________
--
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