Configure nagios to alert only when there are no mx servers available
Posted
by Aseques
on Server Fault
See other posts from Server Fault
or by Aseques
Published on 2010-03-17T13:15:16Z
Indexed on
2010/03/19
11:11 UTC
Read the original article
Hit count: 194
nagios
|monitoring
In my company there are two redundant MX servers, I would like to tell nagios to wake me in the night ONLY if both servers are down.
The default behavior is to alert whenever one of the MX servers is down. I would like to set a timeperiod i.e. 23:00 to 06:00 when nagios only alerts me by sms in case both servers are down.
I am using nagios3 but I couldn't find something like this in the docs.
Solution:
I've used this check_command in a service called MXservice:
check_command check_service_cluster!"MXservice"!2!1!$SERVICESTATEID:mx1:SMTP$,$SERVICESTATEID:mx1:SMTP$
Thanks for all your help
© Server Fault or respective owner