I'm trying to get my check_snmp to work with APC UPS to return the value
of integer values, for example:
/usr/lib64/nagios/plugins/check_snmp -H 1.1.1.1 -o
.1.3.6.1.4.1.318.1.1.1.2.1.1.0 -C public -m
/etc/icinga/mibs/apcups/powernet403.mib
SNMP OK - 2 | PowerNet-MIB::upsBasicBatteryStatus.0=2
What I want is that 2 there above to give me back:
PowerNet-MIB::upsBasicBatteryStatus.0 = INTEGER: batteryNormal(2)
I was able to get this with snmpwalk and when adding '-v' to check_snmp:
/usr/lib64/nagios/plugins/check_snmp -H 1.1.1.1 -o
.1.3.6.1.4.1.318.1.1.1.2.1.1.0 -C public -m
/etc/icinga/mibs/apcups/powernet403.mib
PowerNet-MIB::upsBasicBatteryStatus.0 = INTEGER: batteryNormal(2)
SNMP OK - 2 | PowerNet-MIB::upsBasicBatteryStatus.0=2
However if I run this with -v all the time I'm not sure this will get into
Icinga.
So this is what I'm looking to get back:
/usr/lib64/nagios/plugins/check_snmp -H 1.1.1.1 -o
.1.3.6.1.4.1.318.1.1.1.2.1.1.0 -C public -m
/etc/icinga/mibs/apcups/powernet403.mib
SNMP OK - 2 | PowerNet-MIB::upsBasicBatteryStatus.0=batteryNormal(2)
Anyone know if I'm missing something or is this just the way that
check_snmp works?
Thanks
- Zachary
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users