Handling Forwarded SNMP Alerts
Handling Forwarded SNMP Alerts
I'd like to configure NagiosXI to receive SNMP alerts from a down-stream SNMP management system (StruxureWare Central), and for Nagios to simply display those alerts on the Nagios dashboard without using a MIB. I don't want Nagios to interpret those alerts simply to display it's own alert indicating it has received an alert from StruxureWare.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Handling Forwarded SNMP Alerts
Well if you are sending traps to nagios from another machine, this should not really be an issue at all. It should be setup just like a standard snmp trap interface for nagios. However if you are looking to send it or have nagios query in some other fashion, we would need more details and possibly something custom would have to be created.
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.
Re: Handling Forwarded SNMP Alerts
When I add the StruxureWare Central 'server' what do I choose when running the Monitoring Wizard? Would it be Generic Network Device?
Re: Handling Forwarded SNMP Alerts
So I added the StruxureWare Central server as a generic network device, then added a SNMP Trap monitor for that device, using the wizard. Everything looks good from a Nagios standpoint. However, when I send a test SNMP trap from the StruxureWare Central server, I don't see the alert in Nagios. Have I missed something?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Handling Forwarded SNMP Alerts
Have you installed and configured snmptt per this document? integrating-snmp-traps-with-nagios-xi
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.
Re: Handling Forwarded SNMP Alerts
Absolutely. Typically when there is no MIB installed for the particular device sending the traps, the /var/log/snmptt/snmpttunknown.log shows details. In this case there are no entries for this (or any SNMP device). My StruxureWare Central server is sending the traps to port 162 ... presumably that is OK. The same test SNMP Trap from StruxureWare to Tivoli works fine.
Re: Handling Forwarded SNMP Alerts
You server in Nagios is configured with the DNS name the Nagios server resolves for the server IP? Make sure if the Nagios server is configured to strip domains that the server is setup in Nagios without the full domain also.
Hope that helps!
Hope that helps!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: Handling Forwarded SNMP Alerts
My StruxureWare server is resolvable in Nagios. How do I check if Nagios server is configured to strip domains? I don't believe we changed that.
-
Andreas_c_Schmidt
- Posts: 23
- Joined: Mon Sep 24, 2012 10:03 am
Re: Handling Forwarded SNMP Alerts
the snmptt will be configured under /etc/snmp/snmptt.ini. There you can configure the dns resolving settings.
If you are not getting traps please check the /var/spool/snmp if this dir where the traps are stored is not flooded. I found 700k files in there hanging the whole snmptt up.
If you are not getting traps please check the /var/spool/snmp if this dir where the traps are stored is not flooded. I found 700k files in there hanging the whole snmptt up.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Handling Forwarded SNMP Alerts
@Andreas_c_Schmidt, was there a cause that you could determine?