Page 2 of 2

Re: Notification recipients

Posted: Tue Jun 23, 2015 1:49 pm
by whitest
tgriep wrote:On the left hand side of the GUI, under reports, you can click on Notifications and get the data you are looking for.
IT managers do not use Web Interface. They have no time for it.
I use Nagios 3 years. Please don't tell me how to use GUI. My question is not about this =(

Re: Notification recipients

Posted: Tue Jun 23, 2015 4:56 pm
by tmcdonald
I do not believe this is currently possible the way you describe it. If you would like, you can enter it as a feature request for Core here: https://github.com/NagiosEnterprises/nagioscore

Re: Notification recipients

Posted: Tue Jun 23, 2015 4:57 pm
by abrist
There is a macro that may at least get you part of the way there, though it requires that you use contactgroups (and it will only report on the primary group for the alerted/notified object):
$CONTACTGROUPMEMBERS$
A comma-separated list of all contacts that belong to either 1) the contactgroup name passed as an on-demand macro argument or 2) the primary contactgroup associated with the current contact (if not used in the context of an on-demand macro).
Honestly, this has been requested before, the real issue is that Nagios sends notifications in piecemeal - one by one. There is not a good way with the current logic to query all the recipients of a said notification.

Re: Notification recipients

Posted: Wed Jun 24, 2015 1:37 am
by whitest
abrist, Thanks for your reply. I tried to use $CONTACTGROUPMEMBERS$ already, but it shows wrong information in compare with GUI - Configuration - column "Default Contacts/Groups".

I'll create feature request. I think it useful feature for large organizations.

Re: Notification recipients

Posted: Wed Jun 24, 2015 8:58 am
by tmcdonald
Whenever you file the request, please link back here so we have some reference of the conversation. This will help the Core devs.

Re: Notification recipients

Posted: Wed Jun 24, 2015 9:17 am
by whitest
tmcdonald wrote:Whenever you file the request, please link back here so we have some reference of the conversation. This will help the Core devs.
Done!
https://github.com/NagiosEnterprises/na ... /issues/55

Re: Notification recipients

Posted: Wed Jun 24, 2015 9:22 am
by tmcdonald
Thanks! I added a comment there, so we'll continue the conversation on GitHub if need be.

I'll be closing this thread now, but feel free to open another if you need anything in the future!