Notification sent to two contacts, only one is sent an email
Posted: Fri Nov 29, 2013 5:40 am
Hello all,
We are evaluating Nagios XI, but already encountered a very annoying issue.
Searched the forum and other online resources for a solution, but can't seem to get an issue solved with alerts not being sent for the contact 'nagiosadmin'.
The log claims an alert is sent to two contacts -- My personal contact, and nagiosadmin.
Here are the 4 last lines of /usr/local/nagios/var/nagios.log, showing a disk usage check in stage 4/5 and 5/5, and then creating the notification:
[1385720340] SERVICE ALERT: hostname.domain.local;Drive C: Disk Usage;WARNING;SOFT;4;C:\ - total: 148.95 Gb - used: 15.49 Gb (10%) - free 133.46 Gb (90%)
[1385720400] SERVICE ALERT: hostname.domain.local;Drive C: Disk Usage;WARNING;HARD;5;C:\ - total: 148.95 Gb - used: 15.49 Gb (10%) - free 133.46 Gb (90%)
[1385720400] SERVICE NOTIFICATION: nagiosadmin;hostname.domain.local;Drive C: Disk Usage;WARNING;xi_service_notification_handler;C:\ - total: 148.95 Gb - used: 15.49 Gb (10%) - free 133.46 Gb (90%)
[1385720400] SERVICE NOTIFICATION: myname;hostname.domain.local;Drive C: Disk Usage;WARNING;xi_service_notification_handler;C:\ - total: 148.95 Gb - used: 15.49 Gb (10%) - free 133.46 Gb (90%)
Also in the web-interface I see the same : A notification is created for both contacts.
- Both contacts have a valid email address, use the same contact template, timing of notifications, and are enabled to receive host and service notifications.
- I have also alternated the Nagios installation between "SMTP" and "Sendmail" sending of alerts -- This did not help.
- I debugged on the server that receives the email -- Only one email is submitted.
- Switching to "Sendmail" as mail method, I could debug on the Nagios server -- /var/log/maillog shows that no email for the contact nagiosadmin is submitted to be sent.
So as far as I can tell, Nagios never submits an email for this contact.
I would like to find out why the notification is created, but a subsequent email is not sent. Any help to debug this would be greatly appreciated.
Version: Nagios XI 2012R2.5, deployed through VMware OVF template nagiosxi-2012r2.5-64.ova [CentOS 6.4]
No proxies, SSL, or any adaptations of any kind have been done to the system.
No additional modules, add-ons installed.
Basically the installation is vanilla, and I encounter this issue upon testing my first host to monitor.
Thanks in advance,
M
We are evaluating Nagios XI, but already encountered a very annoying issue.
Searched the forum and other online resources for a solution, but can't seem to get an issue solved with alerts not being sent for the contact 'nagiosadmin'.
The log claims an alert is sent to two contacts -- My personal contact, and nagiosadmin.
Here are the 4 last lines of /usr/local/nagios/var/nagios.log, showing a disk usage check in stage 4/5 and 5/5, and then creating the notification:
[1385720340] SERVICE ALERT: hostname.domain.local;Drive C: Disk Usage;WARNING;SOFT;4;C:\ - total: 148.95 Gb - used: 15.49 Gb (10%) - free 133.46 Gb (90%)
[1385720400] SERVICE ALERT: hostname.domain.local;Drive C: Disk Usage;WARNING;HARD;5;C:\ - total: 148.95 Gb - used: 15.49 Gb (10%) - free 133.46 Gb (90%)
[1385720400] SERVICE NOTIFICATION: nagiosadmin;hostname.domain.local;Drive C: Disk Usage;WARNING;xi_service_notification_handler;C:\ - total: 148.95 Gb - used: 15.49 Gb (10%) - free 133.46 Gb (90%)
[1385720400] SERVICE NOTIFICATION: myname;hostname.domain.local;Drive C: Disk Usage;WARNING;xi_service_notification_handler;C:\ - total: 148.95 Gb - used: 15.49 Gb (10%) - free 133.46 Gb (90%)
Also in the web-interface I see the same : A notification is created for both contacts.
- Both contacts have a valid email address, use the same contact template, timing of notifications, and are enabled to receive host and service notifications.
- I have also alternated the Nagios installation between "SMTP" and "Sendmail" sending of alerts -- This did not help.
- I debugged on the server that receives the email -- Only one email is submitted.
- Switching to "Sendmail" as mail method, I could debug on the Nagios server -- /var/log/maillog shows that no email for the contact nagiosadmin is submitted to be sent.
So as far as I can tell, Nagios never submits an email for this contact.
I would like to find out why the notification is created, but a subsequent email is not sent. Any help to debug this would be greatly appreciated.
Version: Nagios XI 2012R2.5, deployed through VMware OVF template nagiosxi-2012r2.5-64.ova [CentOS 6.4]
No proxies, SSL, or any adaptations of any kind have been done to the system.
No additional modules, add-ons installed.
Basically the installation is vanilla, and I encounter this issue upon testing my first host to monitor.
Thanks in advance,
M