Should I see nagios XI alerts come through /var/log/maillog?
Posted: Tue Nov 01, 2016 9:18 am
I'm running Nagios XI core 4.0.8 on CentOS 6.5. I'm seeing my host notifications come through /var/log/messages but I'm not getting the email.
My contacts.cfg file looks like this for the contact name and the contact name is correct in the host and service cfg file.
In trying to troubleshoot I am checking /var/log/maillog but not seeing anything come through. Just a bit of background here alerts were working before. I did make some changes although nagios did verify the new config. The changes I made consisted of the following:
1) moved a host.cfg file into the /static folder under a new "hosts" folder.
2) Moved a services.cfg file into the /static folder under a new "services" folder.
And of course the emails I should be getting are for the hosts that I moved. My goal was to manage this one server without updates overwritng the changes. Since the host notification is showing in the logs with the correct contact name what else can I do to check the server to see if the emails are actually going out?
Code: Select all
Nov 1 08:57:51 monitor nagios: HOST NOTIFICATION: sysadmins;server.com;DOWN;xi_host_notification_handler;CRITICAL - server.com: rta nan, lost 100%Code: Select all
define contact {
contact_name sysadmins
alias Sysadmins
host_notification_period my_notification_times
service_notification_period my_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
}1) moved a host.cfg file into the /static folder under a new "hosts" folder.
2) Moved a services.cfg file into the /static folder under a new "services" folder.
And of course the emails I should be getting are for the hosts that I moved. My goal was to manage this one server without updates overwritng the changes. Since the host notification is showing in the logs with the correct contact name what else can I do to check the server to see if the emails are actually going out?