Code: Select all
COMMAND: /usr/local/nagios/libexec/check_snmp -H 172.22.73.199 -C public -o .1.3.6.1.4.1.318.1.1.1.3.2.5.0Code: Select all
OUTPUT: SNMP OK - 9 | iso.3.6.1.4.1.318.1.1.1.3.2.5.0=9how do i write a check that will not display the oid and its code but just the text description, that is:
Code: Select all
OUTPUT: SNMP OK UPS self test What complicates this is that there are 10 possible definitions:
Code: Select all
1 No events
2 High line voltage
3 Brownout
4 Loss of mains power
5 Small temporary power drop
6 Large temporary power drop
7 Small spike
8 Large spike
9 UPS self test
10 Excessive input voltage fluctuation