Page 1 of 1

check_snmp doesn't have performance data

Posted: Tue Sep 29, 2015 5:00 pm
by vy3734
I'm using check_snmp at the following location but it doesn't have the -f option to log performance data. How can I turn on perfdata for snmp check? Please help.

[root@esu4v247 libexec]# ./check_snmp -H 11.120.220.13 -C simpsons -o .1.3.6.1.2.1.25.1.1.0
SNMP OK - Timeticks: (3015340695) 348 days, 23:56:46.95 |

/usr/local/nagios/libexec
[root@esu4v247 libexec]# ./check_snmp
check_snmp: Could not parse arguments
Usage:
check_snmp -H <ip_address> -o <OID> [-w warn_range] [-c crit_range]
[-C community] [-s string] [-r regex] [-R regexi] [-t timeout] [-e retries]
[-l label] [-u units] [-p port-number] [-d delimiter] [-D output-delimiter]
[-m miblist] [-P snmp version] [-L seclevel] [-U secname] [-a authproto]
[-A authpasswd] [-x privproto] [-X privpasswd]

Re: check_snmp doesn't have performance data

Posted: Wed Sep 30, 2015 11:47 am
by lgroschen
I just replicated this on my machine with v2.0.3 of the check_snmp plugin. Which version are you using? This could be a bug in the plugin so i'll open an issue for it on github once we have it confirmed.

Re: check_snmp doesn't have performance data

Posted: Thu Oct 01, 2015 1:10 pm
by jfrickson
lgroschen wrote:This could be a bug in the plugin so i'll open an issue for it on github once we have it confirmed.
Bug confirmed and fixed. Fix is in the master branch - commit https://github.com/nagios-plugins/nagio ... 8d5bb25fad