Page 1 of 1

check_snmp command question

Posted: Wed Nov 23, 2016 1:30 pm
by benhank
Im trying to use the check_snmp command to poll a server with snmp v3 When I run (in CCM/services/addnew)

Code: Select all

-U Nagios1017 -A SEalug17 -a SHA -x AES -X 71gulsES -L authNoPriv -P 3 -o $ARG1$
I get

Code: Select all

[[email protected] ~]# /usr/local/nagios/libexec/check_snmp -H 172.2.10.226-U Nagios1017 -A SEalug17 -a SHA -x AES -X 71gulsES -L authNoPriv -P 3 -o 1.3.6.1.4.1.35969.1.1.2.3.2
[-A authpasswd] [-X privpasswd]
What am I missing?
I can snmpwalk to the destination server with the credentials in the example.

Re: check_snmp command question

Posted: Wed Nov 23, 2016 1:37 pm
by mcapra
Can you show your command definition for check_snmp? It looks like there might be a missing space between $HOSTADDRESS$ and $ARG1$ presented here:

/usr/local/nagios/libexec/check_snmp -H 172.2.10.226-U Nagios1017 -A SEaslug17 -a SHA -x AES -X 71gulsES -L authNoPriv -P 3 -o 1.3.6.1.4.1.35969.1.1.2.3.2

Re: check_snmp command question

Posted: Wed Nov 23, 2016 1:38 pm
by avandemore
Please use the Run Check Command from XI > Configure > CCM > Services > [Your Service]. The output should look something like this:
run_check_command.png

Re: check_snmp command question

Posted: Wed Nov 23, 2016 1:41 pm
by benhank
here you go:
Capture.PNG

Re: check_snmp command question

Posted: Wed Nov 23, 2016 1:55 pm
by avandemore
It looks as if you're ARG1 field contains extraneous information.

Re: check_snmp command question

Posted: Mon Nov 28, 2016 12:14 pm
by benhank
ok, meybe I should rephrase my question.
Is there any documentation out there that shows how to correcty use check_snmp with snmp v3? I mknow that I can poll the server since snmpwak produced results. Im just missing something with the check command I think.

Re: check_snmp command question

Posted: Mon Nov 28, 2016 2:03 pm
by avandemore
https://www.monitoring-plugins.org/doc/ ... _snmp.html or

Code: Select all

# /usr/local/nagios/libexec/check_snmp -h

Re: check_snmp command question

Posted: Tue Dec 06, 2016 6:12 pm
by Box293
@benhank

Based on the troubleshooting I did with you, I've included SNMP v3 steps in the following updated documentation:

https://assets.nagios.com/downloads/nag ... g_SNMP.pdf

Re: check_snmp command question

Posted: Wed Dec 07, 2016 10:26 am
by benhank
BEHOLD! Thanks bro! you guys can lock this im all set