SNMP problem - No data received from host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

SNMP problem - No data received from host

Post 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
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMP problem - No data received from host

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: SNMP problem - No data received from host

Post 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
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SNMP problem - No data received from host

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: SNMP problem - No data received from host

Post 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?
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: SNMP problem - No data received from host

Post 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
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Re: SNMP problem - No data received from host

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: SNMP problem - No data received from host

Post by slansing »

We'll see if he can get back to you, otherwise feel free to open your own thread!
Locked