Page 1 of 1

Notifications and Escalations

Posted: Thu May 21, 2015 1:47 pm
by BanditBBS
Ok, so we're writing code to make all notifications automatically create a ticket in our helpdesk application. basically I wrote a custom notification handler and its all working fine on the nagios end. They are still writing/testing on the helpdesk end and asked me to enable notifications so they got a few tests. I decided to take the lazy man way out and just did a service escalation with * for host and * for service. I set first and last notification to 1 and interval to 0. All of our notifications are set to 0 already as we only send one initial notification.

What I then noticed was notifications were only going to the helpdesk and not the other contacts. I read this page, http://nagios.sourceforge.net/docs/3_0/escalations.html, and determined that is proper. So my question is, whats the easiest way to make a contact get sent every notification that goes out if I can't use escalations like that. Am I going to have to modify 150 host templates and add the contact? That will catch 95% of them, but then there are the ones I put custom contact/contactgroups on specific services that I'd have to remember.

Re: Notifications and Escalations

Posted: Thu May 21, 2015 4:22 pm
by lmiltchev
Can't you just use the Bulk Mod Tool and add this contact to all hosts/services with one go?

Re: Notifications and Escalations

Posted: Thu May 21, 2015 4:26 pm
by BanditBBS
lmiltchev wrote:Can't you just use the Bulk Mod Tool and add this contact to all hosts/services with one go?
But if I added to the actual hosts/services and the option for contacts isn't set to + then the contact on the host/service would override whats in the template, wouldn't it? We are very much multi-tenant here and have contacts almost exclusivley assigned through the ~150 different host templates. Maybe a few hundred services have extra contacts assigned.

Re: Notifications and Escalations

Posted: Fri May 22, 2015 12:46 pm
by tmcdonald
BanditBBS wrote:whats the easiest way to make a contact get sent every notification that goes out if I can't use escalations like that.
Yo

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Specifically the host and service notifications.

Re: Notifications and Escalations

Posted: Fri May 22, 2015 1:05 pm
by BanditBBS
Uh oh...we have a new competitor for bandit's favorite Nagios employee(this week - changes regularly)

This will work wonderfully, close this on up!