nagiosadmin contact not getting notifications.
Posted: Thu Feb 11, 2016 11:20 am
Hello,
Our initial rollout of NagiosXI had our nagiosadmin user/contact have Notifications disabled. We continued adding hosts with the set. We are currently running Nagios XI 5.2.3 but these machines started at 5R1.0 with RHEL 6 64 latest updates.
We are now ready to start enabling notifications. We changed to 1 on all hosts/services and also checked Enable Notifications in the Admin area for the nagiosadmin user. It is not getting notifications nor custom notifications, but we are able to send test emails from the Manage Users page and Mail Settings. The Event Log shows notifications sent but /var/log/maillog does not show messages being sent.
Other 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:
So what we have done is pretty much change the contact from this:
...to this:
Any help on this would be appreciated.
Robert
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