Page 1 of 1

Configuring Passive Checks with SNMP Traps

Posted: Tue Aug 14, 2012 1:00 pm
by jbennett
We currently monitor a number of Falcon UPS as well as TrippLite PDUs with regular SNMP. I'm wondering if enabling SNMP Traps on these devices would help to lighten the load on our server.

Currently, we have 187 PDUs with 4 SNMP checks each, and 183 UPSs with 6 SNMP checks each for a total of 1846 SNMP checks. All checks are active for these devices right now.

I have tried setting the SNMP trap receivers on these devices (NMP IP address = Nagios box IP address), but when I run the SNMP Traps configuration wizard, I am told that there are no monitoring options to configure with SNMP Traps.

I have uploaded the two .mib files that documentation states are necessary to be on the NMP box and have verified ownership as root:root.

Any help would be appreciated.

Re: Configuring Passive Checks with SNMP Traps

Posted: Tue Aug 14, 2012 1:21 pm
by scottwilkerson
Have you followed this document after you uploade the mibs?
http://library.nagios.com/library/produ ... -nagios-xi

Generally there aren't settings in the wizard creates a service that the traps will go to when received.

Re: Configuring Passive Checks with SNMP Traps

Posted: Wed Aug 15, 2012 8:51 am
by jbennett
Installing MIBs
You may need to configure SNMPTT on the Nagios XI server to use the MIBs your remote devices are using. This may mean having to
load extra MIBs into the /usr/share/snmp/mibs/ directory on the Nagios XI server. You will then also have to run the following command
to import each new MIB (replace <PathToNewMIB> with the path to the MIB you want to import):
# addmib <PathToNewMIB>
Is this the same as using the Manage MIBs function within the CCM?

Re: Configuring Passive Checks with SNMP Traps

Posted: Wed Aug 15, 2012 9:46 am
by scottwilkerson
Using the Manage MIBs function in the Admin interface is the same as loading them into /usr/share/snmp/mibs/

If you add them there you will also need to run the command as directed.

Re: Configuring Passive Checks with SNMP Traps

Posted: Wed Aug 15, 2012 10:22 am
by jbennett
In an attempt to follow through the directions provided from beginning to end, I uninstalled the previous snmp-trap.zip config wizard and downloaded the latest.

However, I cannot install this new one. I am getting the following error: Wizard installation failed. Uploaded zip file is not a config wizard.

Per another thread here on the Nagios forums, I attempted to reset config permissions: # /usr/local/nagiosxi/scripts/reset_config_perms without luck.

I have also tried to upload the nrpe.zip wizard with the same results.

Checking nagios.log for nrpe.zip or snmp-trap.zip I don't find any entries. If I tail nagios.log then attempt to upload a config .zip, nothing shows in the log in real time.

Re: Configuring Passive Checks with SNMP Traps

Posted: Wed Aug 15, 2012 11:40 am
by scottwilkerson
Can you run the following procedure to fix the permissions, and then try to upload the wizard again

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

Re: Configuring Passive Checks with SNMP Traps

Posted: Wed Aug 15, 2012 1:27 pm
by jbennett
Unfortunately, it did not work. I am still unable to upload the file successfully. I get the same error as before.

And now, I have every host that is checked with check-host-alive (check_icmp) returning the following error: Warning: This plugin must be either run as root or setuid root.

I even chmod 755 chck_icmp, so that it's the same as the other checks, and I don't have any change. user and group are both set to root, just the same as the other checks.

If I run the check from the command line, it returns just fine. From the Nagios web interface however, it does not.

EDIT: I have chmod u+s check_icmp and it appears that the check_icmp failures are slowly clearing. Still can't upload the wizard .zip files successfully though.

Re: Configuring Passive Checks with SNMP Traps

Posted: Wed Aug 15, 2012 3:31 pm
by scottwilkerson
Sorry about that.

Can you run the following and report the output

Code: Select all

cat /etc/group|grep nag

ls -ld /usr/local/nagiosxi/tmp

ls -ld /usr/local/nagiosxi/html/includes/configwizards

Re: Configuring Passive Checks with SNMP Traps

Posted: Wed Aug 15, 2012 4:11 pm
by jbennett

Code: Select all

cat /etc/group|grep nag
This tipped me off to an issue I was having the other day that I believe you assisted with as well. Realizing that I needed:

Code: Select all

nagios:x:500:nagios,apache
nagcmd:x:501:nagios,apache
in the /etc/groups file, I went in and added it back in. I hadn't been back to check the other thread just yet, but this seems to have resolved both of them.

http://support.nagios.com/forum/viewtop ... 410#p31410

Many thanks!