[mrtg] Re: How to graph temperatures from snmp query

Manny Ortega aortega at univ-wea.com
Tue Mar 15 20:51:35 MET 2005


What are you graphing?
Just curious as to what the 1.3.6.1.4.1.5000 tree is.

Anyway, I graph the temp on a Dell server the following way:

Target[asahi.cpu.temp]:
1.3.6.1.4.1.674.10892.1.700.20.1.6.1.2&1.3.6.1.4.1.674.10892.1.700.20.1.6.1.
3:xxxxx at 255.255.255.255 / 10 * 1.8 + 32
RouterUptime[asahi.cpu.temp]: xxxxx at 255.255.255.255
MaxBytes[asahi.cpu.temp]: 200
Title[asahi.cpu.temp]: CPU temperature on Asahi
PageTop[asahi.cpu.temp]: <H1>CPU temperature on Asahi</H1>
	<TABLE>
		<TR><TD>System:</TD><TD>CPU temperature on Asahi</TD></TR>
		<TR><TD>Maintainer:</TD><TD>Manny Ortega</TD></TR>
		<TR><TD>CPU 1
temp:</TD><TD>1.3.6.1.4.1.674.10892.1.700.20.1.6.1.2</TD></TR>
		<TR><TD>CPU 2
temp:</TD><TD>1.3.6.1.4.1.674.10892.1.700.20.1.6.1.3</TD></TR>
	</TABLE>

ShortLegend[asahi.cpu.temp]: ºF
YLegend[asahi.cpu.temp]: Temp. Slot1 °F
Legend1[asahi.cpu.temp]: CPU 1 temperature
Legend2[asahi.cpu.temp]: CPU 2 temperature
Legend3[asahi.cpu.temp]: Legend3
Legend4[asahi.cpu.temp]: Legend4
LegendI[asahi.cpu.temp]: &nbsp;CPU 1:&nbsp;
LegendO[asahi.cpu.temp]: &nbsp;CPU 2:&nbsp;
Options[asahi.cpu.temp]: gauge, integer, nopercent
#alt+248 for ylegend symbol
#alt+0442 for shortlegend symbol 

When I do an SNMPGET on 1.3.6.1.4.1.674.10892.1.700.20.1.6.1.2 I get
value=360
That's degrees celcius x 10, that's why I divide by 10 and convert to
farenheit by multiplying by 1.8 and adding 32.
You say you get "23.4", I'm not sure how MRTG will handle decimals, but it
doesn't hurt to try ;)
BTW, here is the MRTG page for that graph:
http://houmm.univ-wea.com/MRTG/asahi.cpu.temp.html

Hope this helps.

-MannyO

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
Behalf Of Kimmo Koivisto
Sent: Tuesday, March 15, 2005 10:45 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] How to graph temperatures from snmp query

Hello
I have no experience from mrtg, someone else configured my mrtg to draw
graphs from network traffic.

I have temperature sensor in network that I can query with snmp

#snmpget temp-sensor-ip -Oqv -c public 1.3.6.1.4.1.5000.100.101.1 -v 1
"23.4"

I would like to use mrtg to draw graphs from the results of the snmp query.

Any ideas how to configure mrtg or where to find examples or more
information?

Environment:
Fedora Core 3,  mrtg-2.10.15-1

Regards
Kimmo Koivisto

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

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