[mrtg] Re: Problems interpreting decimal "gauge" info (systemload)

Daniel R . Kilbourne drk at voyager.net
Thu Mar 1 01:13:47 MET 2001


I cannot seem to locate it myself in the docs right now, but mrtg (unless
you are also using rrdtool) needs integer input.

If you need to graph non-integers, you can either: 
	a) install rrdtool
	b) multiply the value you get by some number (say 100)
		you would do this by making your config look like this:

	# 1 min en 5 min system load
Target[system-load]: 1.3.6.1.4.1.2021.10.1.3.1&1.3.6.1.4.1.2021.10.1.3.2:communityx at 127.0.0.1 * 100
MaxBytes[system-load]: 10000
Title[system-load]: System load frans.netwerkinformatie.com
PageTop[system-load]: <H1>Systemload</H1>
Options[system-load]: nopercent, gauge
YLegend[system-load]: Load / perc
Legend1[system-load]: Average 1 minute systemload (x 100)
Legend2[system-load]: Average 5 minute systemload (x 100)


Either way will work, although changing the config is definitely the quicker




 
Bernard van de Koppel extolled:
> 
> Hi,
> 
> I have a problem getting the data for my system load, gathered from the
> local ucd-snmpd (on linux) graphed through mrgt (version 2.9.10 on RH
> Linux 7).
> 
> What happens is, that the snmp query will respond with a decimal vallue,
> but mrtg is not putting it into the statistics log file (only the first
> line is updated).
> 
> Is it possible to poll decimal values through mrtg??? I did not find
> anything about it in the manuals, but found no example also???
> 
> Any help appreciated.
> 
> Bernard
> 
> The first few lines from the "system-load.log" file.
> 
> 983372281 1.52 1.75
> 983372281 0 0 0 0
> 983371506 0 0 0 0
> 983371500 0 0 0 0
> 983371200 0 0 0 0
> 983370900 0 0 0 0
> 983370600 0 0 0 0
> 983370300 0 0 0 0
> 983370000 0 0 0 0
> 983369700 0 0 0 0
> 983369400 0 0 0 0
> 
> 
> The setup I use to poll this value:
> 
> # 1 min en 5 min system load
> Target[system-load]:
> 1.3.6.1.4.1.2021.10.1.3.1&1.3.6.1.4.1.2021.10.1.3.2:communityx at 127.0.0.1
> 
> MaxBytes[system-load]: 100
> Title[system-load]: System load frans.netwerkinformatie.com
> PageTop[system-load]: <H1>Systemload</H1>
> Options[system-load]: nopercent, gauge
> YLegend[system-load]: Load / perc
> Legend1[system-load]: Average 1 minute systemload
> Legend2[system-load]: Average 5 minute systemload
> 

-- 
--------------------------------
Daniel R. Kilbourne
daniel.kilbourne at voyager.net
Network Engineering
CoreComm - Formerly Voyager.net
________________________________

--
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