check_snmp string problem


#1

Hi,

Thought I was losing my marbles earlier trying to get check_snmp working on our qsan san.

It turns out after doing snmpwalk the qsan sends back everything as a string?

hdd-temperature.1 = STRING: 40

How would I tackle this so I can deal with Integers and do a bit of threshold range checking?

./check_snmp -H myhost -c public -o Qsan-SNMP-MIB::hdd-temperature.1

Many thanks,

Chris


#2

I don’t think check_snmp support putting in a range. You maybe try useing a regular expression but I don’t know how it would work.

check_snmp -h
-r, --ereg=REGEX