I'm using Qmail for one. For some reason I get the alerts in the nagios logs, but I never get the email.
I'm lost. I can see the alerts hit the logs on the nagios server but I don't get any emails. What am I doing wrong?
I'm not sure if I need a contacts.cfg and a contacts_nagios2.cfg?
contacts.cfg:
define contact{
contact_name administrator
alias user
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r,s,f
host_notification_options d,u,r,f,s
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email user@domain.com
}
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members administrator
}
contacts_nagios2.cfg:
define contact{
contact_name user
alias user
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r,f,s
host_notification_options d,r,u,f,s
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
email user@domain.com
}
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members root
}