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.
Configuring Passive Checks with SNMP Traps
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configuring Passive Checks with SNMP Traps
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.
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
Is this the same as using the Manage MIBs function within the CCM?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>
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configuring Passive Checks with SNMP Traps
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.
If you add them there you will also need to run the command as directed.
Re: Configuring Passive Checks with SNMP Traps
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configuring Passive Checks with SNMP Traps
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
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Re: Configuring Passive Checks with SNMP Traps
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configuring Passive Checks with SNMP Traps
Sorry about that.
Can you run the following and report the output
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/configwizardsRe: Configuring Passive Checks with SNMP Traps
Code: Select all
cat /etc/group|grep nagCode: Select all
nagios:x:500:nagios,apache
nagcmd:x:501:nagios,apachehttp://support.nagios.com/forum/viewtop ... 410#p31410
Many thanks!