Check_snmp

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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Check_snmp

Post by hsmith »

PolleroM wrote:Result on attached
Try to install the package using these instructions. The other one I had you do is for the plugins, this one will be fore snmp.
Former Nagios Employee.
me.
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: Check_snmp

Post by PolleroM »

Hello.
Problem is the same.
See attached file
Attachments
img.jpg
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Check_snmp

Post by hsmith »

PolleroM wrote:Hello.
Problem is the same.
See attached file
The files from the link that I sent you should have the net-snmp-5.4.5.pre1 folder after you extract the tarball.

Inside of that folder:

Code: Select all

[root@ net-snmp-5.4.5.pre1]# ls -l | grep config
-rw-rw-r--  1 1274 1274   31897 Jul  7 01:38 acconfig.h
-rwxrwxr-x  1 1274 1274   44892 Jul  7 01:38 config.guess
-rwxrwxr-x  1 1274 1274   33387 Jul  7 01:38 config.sub
-rwxrwxr-x  1 1274 1274 1542858 Jul  7 01:39 configure
-rw-rw-r--  1 1274 1274  152041 Jul  7 01:38 configure.in
-rw-rw-r--  1 1274 1274   20905 Jul  7 01:38 net-snmp-config.in
[root@ net-snmp-5.4.5.pre1]#
Please try again, and if it happens again, attach the relevant lines from your history file so I can try to replicate your error.

Thanks.
Former Nagios Employee.
me.
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: Check_snmp

Post by PolleroM »

Hello.
Now NET-SNMP should be installed and configured (see IMG1.output).
But from Nagios check_snmp command return Always same error:
No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_snmp, ...) failed. errno is 2: No such file or directory
Attachments
img.jpg
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: Check_snmp

Post by PolleroM »

Alsi if I run manul command from /usr/lib/nagios/plugins/ directory result is no good.
thanks
Attachments
img2.jpg
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Check_snmp

Post by tmcdonald »

Try re-running the configure and compile steps, except this time run ./configure as the following:

--with-snmpget-command=$(which snmpget)
Former Nagios employee
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: Check_snmp

Post by PolleroM »

Hello.
I've tried ./configure with option --with-snmpget-command=$(which snmpget) but it doesn't work.
I solved doing a manual copy of SNMPGET from /usr/local/bin/ directory to /usr/bin directory.
This because the command:
/usr/lib/nagios/plugins/check_snmp -H 10.236.4.186 -C public -o sysUpTime.0 -v
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] 10.236.4.186:161 sysUpTime.0
External command error with no output (return code: 3)


indicates that SNMPGET should be located on /usr/bin/ directory
It seems to work now.
Can be a good solutions?
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: Check_snmp

Post by PolleroM »

Hello.
I replicated all steps on our production Nagios server.
I followed all steps of this documents:
http://sites.box293.com/nagios/guides/i ... centos-6-5
http://sites.box293.com/nagios/guides/i ... centos-6-5
This time everything goes well without any extra operation!
Thanks a lot to all team for support!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Check_snmp

Post by hsmith »

PolleroM wrote:Hello.
I replicated all steps on our production Nagios server.
I followed all steps of this documents:
http://sites.box293.com/nagios/guides/i ... centos-6-5
http://sites.box293.com/nagios/guides/i ... centos-6-5
This time everything goes well without any extra operation!
Thanks a lot to all team for support!
Glad to hear that this one is working for you now!

Are we all right to close this topic out?
Former Nagios Employee.
me.
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: Check_snmp

Post by PolleroM »

Hello.
Yes You Can close.
Can You also indicate me the best method to monitor errors countesr for a SINGLE port on network switch and return an alarm when counter value increase?
Thanks for support
Locked