Is there a way to make Nagios send an email for each trap it receives? We currently have trap monitoring on one our application servers and it will send an email if the current state is OK and the trap that Nagios receives changes the state to Critical. However, if Nagios receives more traps say, seconds after the first one, that are also critical it will not send emails for those since the state was already critical. See the attached screenshot for what I mean. 6 alerts were sent from this server via SNMP trap to Nagios. All 6 were detected by Nagios, but only the underlined (first) one generated an email. The other 5 did not generate emails and they are 5 separate objects, they just all happen to be critical and have to do with the input adapter not running.
Is there a way I can have Nagios either generate an email for each service output change or, instead of that, have Nagios bundle alerts that occur within seconds of each other into one email alert?
Generating emails for multiple traps
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Generating emails for multiple traps
You cannot bundle alerts, but you can make the trap service send a message for each critical.
Open the Trap Service in the Core Config Manager, on the "Check Settings" Tab select On for the "Is Volatile" directive
Save
Apply Configuration
http://nagios.sourceforge.net/docs/3_0/ ... vices.html
Open the Trap Service in the Core Config Manager, on the "Check Settings" Tab select On for the "Is Volatile" directive
Save
Apply Configuration
http://nagios.sourceforge.net/docs/3_0/ ... vices.html
- snapon_admin
- Posts: 952
- Joined: Mon Jun 10, 2013 10:39 am
- Location: Kenosha, WI
- Contact:
Re: Generating emails for multiple traps
That works perfectly, thanks!