snmp_check not working for some devices

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.
Locked
jplamb13
Posts: 6
Joined: Sat Apr 23, 2016 2:20 am

snmp_check not working for some devices

Post by jplamb13 »

Hi All,

I have what seems to be a strange issue. I set up nagios a few weeks ago and everything was working great, i had snmp_check installed and setup to get a few details from switches however now there is no response from a few of the switches.

All Switches are HP 2010 AL 49 port. all on the latest firmware

i have tried to run the snmp_check command from CLI and dont get a response however if i change the ip address and nothing else the command works with another switch, the community string is the same in all switches and this has been checked.

If i run an snmp command from a windows pc using either mib browser or the prtg snmp tool they get a response from all switches. so the switches are working as they should.

does anybody have any ideas? could nagios have stopped checking that switch even though it says it is still checking? can the switch decide to stop responding?

any clues would be great

cheers!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: snmp_check not working for some devices

Post by rkennedy »

It sounds like you're hitting a throttle somewhere.

What is the output of top|head -n6?'

Can you attach a screenshot of your 'Performance Info' page?

Do the checks work if you run them from the CLI of Nagios? Can you show us the full input / output you're entering?
Former Nagios Employee
jplamb13
Posts: 6
Joined: Sat Apr 23, 2016 2:20 am

Re: snmp_check not working for some devices

Post by jplamb13 »

Hi Rkennedy, thank you for the response,

the output of top|head -n6? is

Code: Select all

top - 13:28:13 up 10 days,  4:31,  2 users,  load average: 0.00, 0.01, 0.05
Tasks: 145 total,   1 running, 144 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.2 us,  0.1 sy,  0.0 ni, 99.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  1884388 total,   921724 free,   273152 used,   689512 buff/cache
KiB Swap:  2097148 total,  2097148 free,        0 used.  1380600 avail Mem


I have attached 2 screen shots of the Performance page.

thank you for looking
Attachments
Performance Info2.png
about.PNG
about.PNG (2.73 KiB) Viewed 1835 times
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: snmp_check not working for some devices

Post by Box293 »

jplamb13 wrote:i have tried to run the snmp_check command from CLI and dont get a response however if i change the ip address and nothing else the command works with another switch, the community string is the same in all switches and this has been checked.
If the command isn't working at the CLI, then it removes Nagios from the equation. The CLI test is a good indicator there may be a firewall rule or something in the way.

Are the switches and the XI server on the same subnet? If not, check the device they pass through to ensure there is no connection limiting going on.

I also recommend rebooting the switch and testing again.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jplamb13
Posts: 6
Joined: Sat Apr 23, 2016 2:20 am

Re: snmp_check not working for some devices

Post by jplamb13 »

turns out a few of the switches wanted the SNMP response address set, all others worked with out this but these few needed it to be added in.

thanks for all the responses
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: snmp_check not working for some devices

Post by bwallace »

Thanks for the update and glad to hear you're back on track. I'll close this thread now.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked