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.
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Check_snmp

Post by PolleroM »

Hello. I'm New on Nagios Core. I've installed it on Centos 5 and now I'm blocked on SNMP check. I'm trying to check port status on an HP switch and this is the result:

No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_snmp, ...) failed. errno is 2: No such file or directory.
I've tried many workaround but non success at the moment....Thanks for collaboration
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Check_snmp

Post by tmcdonald »

Please run the following commands as root from the Nagios server command line and post the results:

Code: Select all

ls -l /usr/local/nagios/libexec/check_snmp
find / -name check_snmp
Former Nagios employee
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: Check_snmp

Post by PolleroM »

Hello. This is the result of Commands:
[root@localhost ~]# ls -l /usr/local/nagios/libexec/check_snmp
ls: /usr/local/nagios/libexec/check_snmp: No such file or directory
[root@localhost ~]# find / -name check_snmp
Thanks
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. This is the result of Commands:
[root@localhost ~]# ls -l /usr/local/nagios/libexec/check_snmp
ls: /usr/local/nagios/libexec/check_snmp: No such file or directory
[root@localhost ~]# find / -name check_snmp
Thanks

I am going to assume you never installed the nagios plugins package.

Here are a couple of links that may help you.

The first is from one of our employees, but is not for the version of CentOS you are running:
http://sites.box293.com/nagios/guides/i ... centos-6-5

The second is from a link I found on the exchange section of our website, and is for CentOS 5
http://askaralikhan.blogspot.com/2010/0 ... pe-on.html

Please look at these and let us know if there is anything else we can do to assist.

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

Re: Check_snmp

Post by PolleroM »

Hello.
I've tried using this link
http://sites.box293.com/nagios/guides/i ... centos-6-5[/u]
At the end it says:
Type ./configure and press Enter
If I do this I receive this message:
bash: ./configure: No such file or directory
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: Check_snmp

Post by PolleroM »

Hello.
I've tried following instructions on http://askaralikhan.blogspot.com/2010/0 ... pe-on.html link.
When i try to use check_snmp this is the result.

(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_snmp, ...) failed. errno is 2: No such file or directory
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've tried using this link
http://sites.box293.com/nagios/guides/i ... centos-6-5[/u]
At the end it says:
Type ./configure and press Enter
If I do this I receive this message:
bash: ./configure: No such file or directory
Are the permissions on the configure script right? Are you in the right directory?
Former Nagios Employee.
me.
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: Check_snmp

Post by PolleroM »

I do these operations
◾Type tar xzf net-snmp.tar.gz and press Enter
◾Type cd net-snmp* and press Enter
◾Type ./configure and press Enter

I obtain this output after last step:
bash: ./configure: No such file or directory
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:I do these operations
◾Type tar xzf net-snmp.tar.gz and press Enter
◾Type cd net-snmp* and press Enter
◾Type ./configure and press Enter

I obtain this output after last step:
bash: ./configure: No such file or directory
Can you please provide the output of an ls -l command in the net-snmp directory inside of code brackets?
Former Nagios Employee.
me.
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: Check_snmp

Post by PolleroM »

Result on attached
Attachments
result.jpg
Locked