Our initial rollout of NagiosXI had our nagiosadmin user/contact have Notifications disabled. We continued adding hosts with the
Code: Select all
notifications_enabled 0We are now ready to start enabling notifications. We changed
Code: Select all
notifications_enabledOther users/contacts that we have created are getting notifications for their services, just not the nagiosadmin. Those are in /var/log/maillog along with our test emails from the Manage Users page and Mail Settings.
We looked into the CCM for the nagiosadmin contact (mapped to the nagiosadmin user) and did find that the email definition was set to nagios@localhost where the user was set to a regular email. We changed that setting in the contact to be consistent with the user but still no notifications.
I also noticed the nagiosadmin contact specifies notification commands where the other contacts do not so I removed those to make it consistent with the other contacts and still no notifications. I later found out that the Nagios Core (main) Configuration in the CCM has those set as the global event handler:
Code: Select all
# GLOBAL EVENT HANDLERS
global_host_event_handler=xi_host_event_handler
global_service_event_handler=xi_service_event_handler
Code: Select all
define contact {
contact_name nagiosadmin
alias Nagios Administrator
host_notification_period nagiosadmin_notification_times
service_notification_period nagiosadmin_notification_times
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands xi_host_notification_handler
service_notification_commands xi_service_notification_handler
email nagios@localhost
use xi_contact_generic
}
Code: Select all
define contact {
contact_name nagiosadmin
alias Nagios Administrator
host_notification_period nagiosadmin_notification_times
service_notification_period nagiosadmin_notification_times
host_notification_options d,u,r,f,s,
service_notification_options w,u,c,r,f,s,
email [email protected]
use xi_contact_generic
}
Robert