Alert emails not sent to Contacts
Posted: Fri Nov 02, 2018 9:43 am
Platform is: Nagios XI 5.5.3
I've been trying to setup alerts to send to a Contact recipient and not having any luck. Please note the recipient is setup as a "Contact" only object and not a "User" account. I do not need this Contact recipient to be able to login to the Nagios system but rather only be able to receive alerts. I've tried creating a user manually as well as copied an existing Contact but neither is working. The Contact definition is below (some info modified). The contact is currently setup to receive Host status only and not other related services such as disk space, utilization, etc. but can expand on it if necessary. I did try enabling both Host and Services alert but again, did not work.
define contact {
contact_name ITSupport
alias IT Support Center
host_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,r,s,
service_notification_options w,u,c,r,f,
host_notification_commands xi_host_notification_handler
email support@<somedomain>.com
use xi_contact_generic
}
Basic steps taken to setup the Contact:
1) In Core Config Manager | Alerting / Contacts | Add New - provided all the necessary info
2) Also tried copying an existing Contact entry.
3) Assign Contact Templates
4) Enable Host Notification Command for "notify-host-by-email" but also tried "xi_host_notification_handler"
5) Assign to Contact Groups
6) Update monitored object alert to include Contact and Contact Group.
Can anyone confirm the above steps are correct and/or share a better process (step-by-step instruction would be greatly appreciated)?
Thanks,
-pc
I've been trying to setup alerts to send to a Contact recipient and not having any luck. Please note the recipient is setup as a "Contact" only object and not a "User" account. I do not need this Contact recipient to be able to login to the Nagios system but rather only be able to receive alerts. I've tried creating a user manually as well as copied an existing Contact but neither is working. The Contact definition is below (some info modified). The contact is currently setup to receive Host status only and not other related services such as disk space, utilization, etc. but can expand on it if necessary. I did try enabling both Host and Services alert but again, did not work.
define contact {
contact_name ITSupport
alias IT Support Center
host_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,r,s,
service_notification_options w,u,c,r,f,
host_notification_commands xi_host_notification_handler
email support@<somedomain>.com
use xi_contact_generic
}
Basic steps taken to setup the Contact:
1) In Core Config Manager | Alerting / Contacts | Add New - provided all the necessary info
2) Also tried copying an existing Contact entry.
3) Assign Contact Templates
4) Enable Host Notification Command for "notify-host-by-email" but also tried "xi_host_notification_handler"
5) Assign to Contact Groups
6) Update monitored object alert to include Contact and Contact Group.
Can anyone confirm the above steps are correct and/or share a better process (step-by-step instruction would be greatly appreciated)?
Thanks,
-pc