[mrtg] Temerature reading on netapp 2020

Lennie Wennerlund lennie at bioinvent.com
Thu Jul 24 14:22:54 CEST 2008


Hello.
I have a problem whit mrtg to get information from netapp 2020
what I want to monitoring is the temperature in the system.
if I run the command snmpget from linux ( ubuntu ) console I get
root at mrtg:~# snmpget -v1 -c public 10.3.20.10 1.3.6.1.4.1.789.1.21.1.2.1.25.1
SNMPv2-SMI::enterprises.789.1.21.1.2.1.25.1 = STRING: "33C (91F), 31C (87F), 30C (86F), 34C (93F)"
The result is: STRING: "33C (91F), 31C (87F), 30C (86F), 34C (93F)"
And the value I want mrtg to monitoring is 33, 31, 30, 34
In the mrtg.cfg file I have this information.

LoadMIBS: /etc/mrtg/temp/netapp.mib
ConversionCode: /etc/mrtg/temp/MyConversions.pl
Target[netappTemp]:encTempSensorsCurrentTemp.1:public at 10.3.20.10|netappTemp
SetEnv[netappTemp]: MRTG_INT_IP="" MRTG_INT_DESCR="1"
MaxBytes[netappTemp]: 60
Title[netappTemp]: Temp – Netapp 1 FS01
PageTop[netappTemp]: <h1>Temp—Netapp 1 FS01</h1>

And MyConversion.pl looks like this
Sub netappTemp{
}
The Problem is the MyConversion.pl file. I don’t know what I write inside it.
I have trid to find information on the internet on how the perl langugare works and how to get it working whit mrtg to get the temperatures monitored
Help me.

______________________________________________________________________________________________
 
Kind Regards
Lennie Wennerlund



More information about the mrtg mailing list