Page 2 of 2
Re: Check_snmp
Posted: Fri Aug 28, 2015 10:15 am
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.
Re: Check_snmp
Posted: Tue Sep 01, 2015 9:34 am
by PolleroM
Hello.
Problem is the same.
See attached file
Re: Check_snmp
Posted: Tue Sep 01, 2015 9:44 am
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.
Re: Check_snmp
Posted: Thu Sep 03, 2015 2:48 am
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
Re: Check_snmp
Posted: Thu Sep 03, 2015 3:04 am
by PolleroM
Alsi if I run manul command from /usr/lib/nagios/plugins/ directory result is no good.
thanks
Re: Check_snmp
Posted: Thu Sep 03, 2015 1:37 pm
by tmcdonald
Try re-running the configure and compile steps, except this time run ./configure as the following:
--with-snmpget-command=$(which snmpget)
Re: Check_snmp
Posted: Fri Sep 04, 2015 1:28 am
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?
Re: Check_snmp
Posted: Fri Sep 04, 2015 4:58 am
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!
Re: Check_snmp
Posted: Fri Sep 04, 2015 9:12 am
by hsmith
Glad to hear that this one is working for you now!
Are we all right to close this topic out?
Re: Check_snmp
Posted: Fri Sep 25, 2015 10:07 am
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