SNMP windows issue - services timing out, but performance OK

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

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

Post 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)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

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

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

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

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

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

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked