check_snmp doesn't have performance data

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vy3734
Posts: 109
Joined: Tue Sep 29, 2015 4:48 pm

check_snmp doesn't have performance data

Post 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]
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: check_snmp doesn't have performance data

Post 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.
/Luke
jfrickson

Re: check_snmp doesn't have performance data

Post 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
Locked