Page 1 of 1

SNMP problem - No data received from host

Posted: Wed Oct 30, 2013 12:31 pm
by toleolu
Using the XI SNMP Monitoring wizard, I don't get any data from a UPS that is SNMP enabled. It's being monitored on our old Nagios, and I can access the Management GUI on the UPS and confirm that SNMP is enabled and the community name. I get the same result using SNMP walk. This is an APC UPS.

I don't have much experience with SNMP, so any advice that anyone can offer on how to go about troubleshooting this would be appreciated.

Mahalo

Re: SNMP problem - No data received from host

Posted: Wed Oct 30, 2013 1:17 pm
by sreinhardt
Generally, in addition to community strings snmp is restricted via incoming IP. Have you enabled the new server access to it? You might also check with nmap to verify the port is open. Specifically you want the result to say open not filtered or closed.

Code: Select all

nmap -sU -p 161 hostname\IP

Re: SNMP problem - No data received from host

Posted: Wed Oct 30, 2013 2:22 pm
by toleolu
I added the Nagios XI server IP to the community string, ran nmap and it shows the host is up, but still no joy on SNMP Walk.

What is OID? In the wizard it has it as mib-2.interfaces is there any way to confirm that on the UPS??

Another thought, would I better off setting this up with APC UPS plugin from Nagios Exchange? I uploaded that to Nagios, but I haven't quite figured out how to make that work, guess I need to read up on that a little more.

Thanks

Re: SNMP problem - No data received from host

Posted: Wed Oct 30, 2013 3:13 pm
by sreinhardt
Having the host up, simply means that ping responded, not that the port is open. Please respond with the output from the nmap scan, feel free to remove the internal ip\name.

How do you mean you added the ip to the community string? Did you actually append it to the string, because that will not help in this case, or do you mean that per community string, you can add various IPs that are allowed to use it? I am not familiar with the apc web ui enough to know for sure.

Mib-2.interfaces is an oid that should be on most devices, however may not be on an apc depending on if its ethernet port is monitored via snmp. Generally this is the beginning of a branch for the interfaces on systems, switches and routers. It likely does not apply in many ways to your apc.

The apc plugin likely uses snmp and will need to be have snmp working first.

Re: SNMP problem - No data received from host

Posted: Wed Oct 30, 2013 3:32 pm
by toleolu
When you configure SNMP on the APC GUI, it has a number of fields where you can specify a community name and an IP, I just added the Nagios ip in the ip field next to the community name I've been using.

I got the plugin check_apc.pl to work from the cli, it returned Smart UPS 750, reporting for duty. Let me see if I can figure out how to set up a command using that plugin. I'm a litle hazy on the command string for this stuff, but if I understand correctly, I get the command to work from the cli then I use that string to create the command in Nagios, then I create a service, referencing the command I created, then add that service to the host. Is that correct?

Re: SNMP problem - No data received from host

Posted: Wed Oct 30, 2013 4:54 pm
by slansing
The command string is essentially what you ran from the command line, please see this doc for more details:

http://assets.nagios.com/downloads/nagi ... lugins.pdf

Re: SNMP problem - No data received from host

Posted: Tue Apr 01, 2014 6:28 pm
by brandon.pal
Hi toleolu. Did you get it to work? I've never worked with SNMP before and really just starting out with Nagios and I am completely lost.

Any tips or if you have any instructions would be awesome.

Re: SNMP problem - No data received from host

Posted: Wed Apr 02, 2014 2:26 pm
by slansing
We'll see if he can get back to you, otherwise feel free to open your own thread!