Page 1 of 1

Notification with email copy

Posted: Mon Feb 24, 2014 8:58 am
by opensys
Hi.
We'd like to send notification to a contact with a copy to a few emails. We found that in Nagios XI in configuration of contacts exist fields named Addon Address 1 until 6. I wonder if these fields are for this purpose, or how to accomplish this task.

Best Regards

Ronaldo

Re: Notification with email copy

Posted: Mon Feb 24, 2014 11:47 am
by abrist
Out of the box, the addon emails do nothing. You would need to create a custom script, pass the script the addon email macros, and then send to those addresses.

Re: Notification with email copy

Posted: Tue Feb 25, 2014 9:38 am
by opensys
And you can give me a direction to start ? I'll have to customize?
abrist wrote:Out of the box, the addon emails do nothing. You would need to create a custom script, pass the script the addon email macros, and then send to those addresses.

Re: Notification with email copy

Posted: Tue Feb 25, 2014 3:15 pm
by sreinhardt
Your best bet would probably be to start with the XI notification script /usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_notification.php. You would then also either need to modify or copy and modify the XI notification handlers in core config manager.