Hi,
I just installed the mtk-nagios plug-in on a system with a customer snmp.conf with the following entries:
oidOutputFormat 5
quickPrinting 1
printNumericEnums 1
These snmp settings cause the dell_health.py to fail and report "No Values" on every reading.
The following patch fixed the problem in my case.
Investigating if there are other paramenters we should add during runtime to make sure the plug-in work as expected is probably a good idea...
Code:--- /usr/lib64/nagios/plugins/dell_health.py.bak 2009-07-08 14:21:39.000000000 +0100 +++ /usr/lib64/nagios/plugins/dell_health.py 2009-07-08 17:20:19.000000000 +0100 @@ -571,7 +571,7 @@ if fileAge >= 60: # Get SNMP cache data - cmdline = ('/usr/bin/snmpwalk -v1 -c %s %s %s ') + cmdline = ('/usr/bin/snmpwalk --oidOutputFormat=2 --quickPrinting=0 --printNumericEnums=0 -v1 -c %s %s %s ') cmdline = cmdline % (self.SNMP_COMMUNITY_STRING, self._options.hostname, OIDWalkString) p = subprocess.Popen(cmdline, shell=True, stdout = subprocess.PIPE, stderr = subprocess.STDOUT) out, err = p.communicate() @@ -1195,7 +1195,7 @@ # Storage battery status [13] # Virtual disk(s) status [14] - cmdline = ('/usr/bin/snmpget -v1 -c %s %s ' + \ + cmdline = ('/usr/bin/snmpget --oidOutputFormat=2 --quickPrinting=0 --printNumericEnums=0 -v1 -c %s %s ' + \ 'SNMPv2-SMI::enterprises.674.10892.1.200.10.1.2.1 ' + \ 'SNMPv2-SMI::enterprises.674.10892.1.200.10.1.9.1 ' + \ 'SNMPv2-SMI::enterprises.674.10892.1.200.10.1.12.1 ' + \


LinkBack URL
About LinkBacks
Reply With Quote