check_snmp - STRING value and Ranges
Posted: Tue Jul 09, 2013 1:31 am
Hi all,
One of my devices returns a value in STRING format:
I'd like to insert a threshold in order to launch an alarm (i.e. if the value drops under -70).
I usually use the check_snmp options -w and -c, but maybe them work only with INTEGER values.
There is a simple solution mixing the check_snmp options?
Many thanks
One of my devices returns a value in STRING format:
Code: Select all
[]# snmpget -v2c -cpublic 192.168.1.1 .1.3.6.1.4.1.3640.1.1.1.20.2.1.1.1362211967.1206910998.28
SNMPv2-SMI::enterprises.3640.1.1.1.20.2.1.1.1362211967.1206910998.28 = STRING: "-65.81"
[]#./check_snmp -C public -H 192.168.1.1 -o .1.3.6.1.4.1.3640.1.1.1.20.2.1.1.1309280830.2749366273.28
SNMP OK - "-65.81" |
I usually use the check_snmp options -w and -c, but maybe them work only with INTEGER values.
There is a simple solution mixing the check_snmp options?
Many thanks