Page 1 of 2

Notification email address questions

Posted: Mon Nov 16, 2015 6:54 pm
by derekb
Hi there
We currently use the default send mail to process email alerts to our users which works great. Is there a way to specif my a different "from" address based on the user account receiving the email?

We're trying to find a good way to get Nagios alerts to generate a ticket in our CRM. It looks at the "from" address to see if it is associated with a customer account and then makes a ticket based on this. If the from address isn't tied to any customer account, the ticket is generated but sits in limbo until we assign it to the right customer. The CRM we use is TigerPaw -- not sure if anyone has any experience with the two products -- probably a long shot :)

Re: Notification email address questions

Posted: Mon Nov 16, 2015 7:01 pm
by Box293
Not that I am aware from. From what I understand, the from address is taken from the Admin > System Config > Manage Email Settings page.

Technically you could create custom notification commands that could use a custom script to do this for you.

Re: Notification email address questions

Posted: Mon Nov 16, 2015 9:39 pm
by derekb
Box293 wrote:Not that I am aware from. From what I understand, the from address is taken from the Admin > System Config > Manage Email Settings page.

Technically you could create custom notification commands that could use a custom script to do this for you.
Any suggestions on who we might speak to for some advice on how to get Nagios alerts integrated with our CRM? We're aware there would be Dev costs.

Re: Notification email address questions

Posted: Mon Nov 16, 2015 10:43 pm
by Box293
Email [email protected] with your request, providing as much detail as possible. They will be able to come up with a quote.

Re: Notification email address questions

Posted: Mon Jul 18, 2016 2:13 pm
by derekb
Sorry to raise this thread from the dead.

Just trying to hash out some items regarding quieting down NAGIOS alerts a bit. We're trying to figure out the best way to have NAGIOS tie into our existing CRM via email without having it generate a million tickets. I'm aware there are services like PagerDuty etc, but I'm wondering if anyone has come up with some clever ideas here.

Essentially, I'm wondering if there's a way to have a 'summary' of alerts generated. Kind of like a mailing list digest -- one email with all the alert activity in the last X minutes generated by host Y.

Re: Notification email address questions

Posted: Mon Jul 18, 2016 3:18 pm
by tgriep
I found this on our exchange site.
https://exchange.nagios.org/directory/A ... er/details

It looks fairly close to what you are looking for.
It consolidates the notifications and then uses Cron to send them out.
You may be able to modify it for your needs.

Re: Notification email address questions

Posted: Mon Jul 18, 2016 3:22 pm
by rkennedy
In addition to what @tgriep mentioned. If your ticketing system is able to detect different types of tickets, you could have them set to only send on OK and WARN / CRIT, with this triggering whether or not to open / close. With that, you'll want to set your notification_interval to 0, which will send only one notification right away as the state changes.

I know that there was a recent post about getting OTRS integrated here we've been working through that might have some information for you - https://support.nagios.com/forum/viewto ... 999#bottom

I know many customers have ServiceNow integrated in with Nagios, perhaps you could recycle some of the code? https://exchange.nagios.org/directory/P ... er/details
Essentially, I'm wondering if there's a way to have a 'summary' of alerts generated. Kind of like a mailing list digest -- one email with all the alert activity in the last X minutes generated by host Y.
This isn't going to be possible currently.

Re: Notification email address questions

Posted: Mon Jul 18, 2016 3:46 pm
by derekb
tgriep wrote:I found this on our exchange site.
https://exchange.nagios.org/directory/A ... er/details

It looks fairly close to what you are looking for.
It consolidates the notifications and then uses Cron to send them out.
You may be able to modify it for your needs.
That IS what I'm looking for! I'm playing around iwth it, but not getting it to work. Emailed the author -- here's to hoping he's still around :)

Re: Notification email address questions

Posted: Mon Jul 18, 2016 4:52 pm
by tgriep
What problems are you having?
Can you provide what you have done already and any errors that you are receiving?

Re: Notification email address questions

Posted: Mon Jul 18, 2016 4:57 pm
by derekb
tgriep wrote:What problems are you having?
Can you provide what you have done already and any errors that you are receiving?
Hi Tom!
We're on XI latest. I've uploaded the plugins and made the command as outlined in the read me. I have a host that I'm testing with. I've set it to contact myself via the command also mentioned in the read me. The contact is set to use host notifications via that new command.

/tmp/notifier.txt didn't exist , so I did a touch to create it. I simply don't see any data being written to this file when an event is triggered. I do see events written in /var/log/messages for the host, though.