Page 2 of 2

Re: SNMP windows issue - services timing out, but performanc

Posted: Wed Dec 05, 2018 3:31 pm
by jacek
I also tested that before posting here, doesn't say much though (with or without -t 60):

Code: Select all

/usr/local/nagios/libexec/check_snmp_win.pl -H HOSTNAME -C COMMUNITY --v2c -r -n 'Server' -vvv -t 60
no timeout defined : 60
 actual max octets:: 1472
 new max octets:: 15000
ERROR: Alarm signal (Nagios time-out)

Re: SNMP windows issue - services timing out, but performanc

Posted: Wed Dec 05, 2018 4:50 pm
by scottwilkerson
Actually I was looking to run it without anything after the -n flag so remove 'Server'

Code: Select all

/usr/local/nagios/libexec/check_snmp_win.pl -H HOSTNAME -C COMMUNITY --v2c -r -n -vvv -t 60
this should give you a list of all the services

Also, if you are not doing so, can you replace HOSTNAME with the IP of the server instead of the hostname

Re: SNMP windows issue - services timing out, but performanc

Posted: Wed Dec 05, 2018 5:10 pm
by jacek
Sorry, now tested with "-n" without service name specified, still nothing (via IP and FQDN)....
Noticed that now a few new servers started acting like this, which are TTL and ping wise very near to the Nagios server (ping ~50ms), so this is not an network distance issue for sure.

Re: SNMP windows issue - services timing out, but performanc

Posted: Wed Dec 05, 2018 5:51 pm
by scottwilkerson
And when you did the snmpwalk it was from your XI server with the same IP/community string?

I just verified this on a Windows server here and the plugin is working as expected.

Also, as an additional question does your community string have any non-alphanumeric chars that may need to be escaped?

Re: SNMP windows issue - services timing out, but performanc

Posted: Wed Dec 05, 2018 6:02 pm
by jacek
Yes, I tested all from the XI server.
The community is only alphanumeric.

As I mentioned earlier, the snmp diskspace, ram and cpu checks are running without issues towards the same machines...
And I also have machines that are showing no issues at all.

Re: SNMP windows issue - services timing out, but performanc

Posted: Thu Dec 06, 2018 4:13 pm
by scottwilkerson
This is extremely strange, especially since it is working on other servers using the same plugin. This rules the plugin out as a possible cause.

Is there anything different between the servers it is working on and those it is not? Different Windows version or anything?

I have tested against a variety of windows machines here and it is working on all of them.

Re: SNMP windows issue - services timing out, but performanc

Posted: Thu Dec 06, 2018 4:21 pm
by jacek
Hi Scott, it looks like this is an network issue.
I did a tcpdump on the nagios server and wireshark on the windows server and I clearly saw that the request is comming in and response going out, just not arriving on nagios server at all.
Our ISP checking things out.

I will let you know, thanks for your help!

Re: SNMP windows issue - services timing out, but performanc

Posted: Thu Dec 06, 2018 4:30 pm
by scottwilkerson
jacek wrote:Hi Scott, it looks like this is an network issue.
I did a tcpdump on the nagios server and wireshark on the windows server and I clearly saw that the request is comming in and response going out, just not arriving on nagios server at all.
Our ISP checking things out.

I will let you know, thanks for your help!
Thanks for getting back. That would explain a lot then

Best of luck!