Notification recipients

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Notification recipients

Post 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 =(
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notification recipients

Post 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
Former Nagios employee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notification recipients

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Notification recipients

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notification recipients

Post 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.
Former Nagios employee
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Notification recipients

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notification recipients

Post 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!
Former Nagios employee
Locked