Number of host and service notifications


#1

Hello,

First of all, sorry for my english :slight_smile:

My question is about notifications. Is there a possibility to receibe only two notifications of a services or a host, and no more? For example, smtp services down. Every 24 hours I receive an email. Then I want to receive only two notifications (two days) and no more emails until the services go up again. I try with Notification Escalations but it didnt work:

Escalation Name: twonotifications
Alias: twonotifications
First Notification: 2
Last Notification: 3
Notification Interval: 0
Escalation Period: 24 x 7
Hosts Escalation Options: d u r
Services Escalation Options: w u c r

The 24 hours notificacion is defined in the service configuration.

Thank you.


#2

nagios.sourceforge.net/docs/2_0/ … escalation

Try setting the Last notification to 0 and see what happens then. This option should keep using this escalation entry forever, and because of notification interval is set to 0 this should work.

Try and, pls, reply if it does what you want.


#3

It works! :slight_smile: Thank you very much.


#4

Now I have another problem. I want to disable the first notification and sent only the second one 24 hours later. Then, if a host goes down I ignore the first notification and get the second one 24 hours later. I create this escalation but didn’t work.

Escalation Name: firstnotification
Alias: firstnotification
First Notification: 1
Last Notification: 1
Notification Interval: 1440
Escalation Period: 24 x 7
Hosts Escalation Options: d u
Services Escalation Options: w u c

This notification is sent to a contact group with an invalid email address.