Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I try to configure nagios in the following way

for every service (for example "mysql seconds behind master") I need to define few levels of escalations, when level is warning I want to send only email and when level is critical I want to send email and sms .

What is the right way to do this?

Do be stick we the levels definition (critical or warning), if there is different way to differentiate email level and sms level of escalation?


share|improve this question

For every kind of notification you get to define service_notification_commands or host_notification_commands. So, to do this or that depending on the condition is up to the command you define. Write your own script, pass it the SERVICESTATE or HOSTSTATE macros. Send as many emails or SMSes as you want depending on the state.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.