Page 1 of 2
Notification recipients
Posted: Sat Jun 20, 2015 2:06 am
by whitest
In large companies will be very useful to know how recieved this notify except you. Are you alone or not?
Is there Variables for notify-service-by-email that can be used for it. I want to show in email body all nagios-contacts/gruops that nagios sent the notify.
For example:
Code: Select all
Notification Type: RECOVERY
Service: PING
Host: Hyper-V 03
IP Address: 10.14.2.53
Date/time: 2015-06-20 09:32:02
Info: PING OK - Packet loss = 0%, RTA = 1.28 ms
Recipients: nagiosadmin, yury, alex, support-team1.
Re: Notification recipients
Posted: Sun Jun 21, 2015 6:57 pm
by Box293
No, this is not built into nagios.
You could however have Nagios sending notifications to distribution lists and from within your email program (like Outlook integrated with Exchange) you would be able to see who are members of distribution lists.
Re: Notification recipients
Posted: Mon Jun 22, 2015 2:29 am
by whitest
Box293 wrote:No, this is not built into nagios.
You could however have Nagios sending notifications to distribution lists and from within your email program (like Outlook integrated with Exchange) you would be able to see who are members of distribution lists.
It is not variant. You can specify contacts and contact-groups in object definitions. Nagios will send notifications separately...
Re: Notification recipients
Posted: Mon Jun 22, 2015 4:00 pm
by tgriep
The only way to get the data you are looking for is to run the Notification report. Would this suffice?
Re: Notification recipients
Posted: Tue Jun 23, 2015 1:01 am
by whitest
tgriep wrote:The only way to get the data you are looking for is to run the Notification report. Would this suffice?
Run report for every notification?...
Re: Notification recipients
Posted: Tue Jun 23, 2015 3:21 am
by whitest
When I view column "Default Contacts/Groups" on Configuration page I see all contacts/groups that can recieve notifications from the service/host. How to grap this information to notify-service-by-email command?
Re: Notification recipients
Posted: Tue Jun 23, 2015 1:33 pm
by tgriep
Could you post the version of Nagios Core or Nagios XI that you are running?
Do you want to get a list of users that received a notification?
Re: Notification recipients
Posted: Tue Jun 23, 2015 1:38 pm
by whitest
tgriep wrote:Could you post the version of Nagios Core or Nagios XI that you are running?
Do you want to get a list of users that received a notification?
Thank you for your response!
I use Nagios Core 4.0.8.
Yes, I want to get a list of all users and grups that received a notification.
Re: Notification recipients
Posted: Tue Jun 23, 2015 1:44 pm
by whitest
My boss asked me about this. I think it's useful information for management.
He would like to know who are receipments of the message.
It would help to ensure that you not alone who received notify.
Re: Notification recipients
Posted: Tue Jun 23, 2015 1:45 pm
by tgriep
On the left hand side of the GUI, under reports, you can click on Notifications and get the data you are looking for.