Email notifications not working for two contacts
Posted: Tue Aug 16, 2016 2:24 am
Hi Support,
I'm having issues getting email notifications to work for two particular contacts. Notifications for other contacts are working fine. There was a slight difference in the setup - normally I would create a user and check the box that says "create as a monitoring contact". This time I'm just creating a contact, as login is not required.
Here are the contact definitions:
The service that I'm testing with:
According to the Nagios log the notifications are being sent:
But there's nothing in /var/log/maillog at this time. Any ideas? I suspect that if I created an XI user and associated contact it would work fine, but I would prefer not to since this will be going to a distribution list (no user in particular).
Nagios is up to date (5.2.9)
I'm having issues getting email notifications to work for two particular contacts. Notifications for other contacts are working fine. There was a slight difference in the setup - normally I would create a user and check the box that says "create as a monitoring contact". This time I'm just creating a contact, as login is not required.
Here are the contact definitions:
Code: Select all
define contact {
contact_name Email_Helpdesk
alias Helpdesk
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,r,
service_notification_options w,c,r,f,
host_notification_commands xi_host_notification_handler
service_notification_commands xi_service_notification_handler
email [email protected]
}
define contact {
contact_name Email_SysTeam
alias Systems Team
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,r,
service_notification_options w,c,r,f,
email [email protected]
use xi_contact_generic
}
Code: Select all
define service {
host_name Crystal
service_description Drive C: Disk Usage
use xiwizard_windowswmi_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
flap_detection_enabled 0
notification_interval 60
first_notification_delay 0
notification_period 24x7
notification_options w,c,u,r,f,s,
notifications_enabled 1
contacts Email_Helpdesk,Email_SysTeam,SMS_Critical
_xiwizard windowswmi
register 1
}
Code: Select all
[1471330924] SERVICE ALERT: Crystal;Drive C: Disk Usage;WARNING;HARD;5;WARNING - [Triggered by _Used%>50] - C: Total=79.90GB, Used=70.45GB (88.2%), Free=9.45GB (11.8%)
[1471330924] SERVICE NOTIFICATION: Email_Helpdesk;Crystal;Drive C: Disk Usage;WARNING;xi_service_notification_handler;WARNING - [Triggered by _Used%>50] - C: Total=79.90GB, Used=70.45GB (88.2%), Free=9.45GB (11.8%)
[1471330924] SERVICE NOTIFICATION: Email_SysTeam;Crystal;Drive C: Disk Usage;WARNING;xi_service_notification_handler;WARNING - [Triggered by _Used%>50] - C: Total=79.90GB, Used=70.45GB (88.2%), Free=9.45GB (11.8%)
Nagios is up to date (5.2.9)