Page 2 of 2

Re: Notifications to a Contact Group

Posted: Wed Sep 25, 2013 12:14 pm
by aravindreddy114
OK. How can I do alter the nagios core source and edit the macro

Re: Notifications to a Contact Group

Posted: Wed Sep 25, 2013 12:55 pm
by abrist
On your own. This type of change requires intimate knowledge of the source, and advanced knowledge of C.

If you possess both of these things, then you should know how to do so. Otherwise, you can investigate the source on your own:
http://sourceforge.net/p/nagios/nagiosc ... ster/tree/

And brush up on your C skills:
http://www.wibit.net/

Or just post a feature request for the changes you wish and wait for an indeterminate amount of time:
http://tracker.nagios.org

Re: Notifications to a Contact Group

Posted: Wed Sep 25, 2013 1:01 pm
by aravindreddy114
Thank you
The problem i am facing is when i use the Macro NOTIFICATIONRECIPIENTS to send the mail, its picking wrong Email,
Macro CONTACTEMAIL is getting the correct address which is [email protected]
where as NOTIFICATIONRECIPIENTS is getting wrong address{which is <[email protected]>}

Where should i go to edit the macro NOTIFICATIONRECIPIENTS , which file do i change

Re: Notifications to a Contact Group

Posted: Wed Sep 25, 2013 3:01 pm
by abrist
NOTIFICATIONRECIPIENTS is the macro for the nagios users assigned to the object. It is not meant to be mailed to. Nagios should use the notification command to send to all the emails/contacts associated with the object. The NOTIFICATIONRECIPIENTS macro is just so that you can tell what other users are also configured on the object. Why are you trying to mail to NOTIFICATIONRECIPIENTS?