Page 1 of 1

check_snmp parameters

Posted: Sat Mar 08, 2014 2:12 pm
by scagno83
Hi All,

I am using Nagios Core 3.2.3.
I have a device that reply to snmpget with the following string

Code: Select all

 snmpget -v1 -c public $HOSTADDRESS $OID
device-MIB::StreamInfo = STRING: "tuna=service|tuid=3|tude=11.595 GHz|postfb=0.0000|ss=-66.0|snr=12.5"
So the check_snmp plugin reply with the string

Code: Select all

check_snmp!-P 1 -C public -H $HOSTADDRESS$ -o $OID

"tuna=service|tuid=3|tude=11.595 GHz|postfb=0.0000|ss=-66.0|snr=12.5"
It is possible to get only snr parameter value configuring a check_snmp correct parameter or the only solution is to write a script to get needed parameter?


Thanks for any help provided.

Re: check_snmp parameters

Posted: Mon Mar 10, 2014 10:17 am
by sreinhardt
Considering it is returned as a single string, I think the only option would be to write a wrapper script and sed out what you do and don't want. It really shouldn't be too hard with that piece of text.