Page 1 of 1

first_notification_delay for warnings only?

Posted: Thu Nov 28, 2013 3:25 am
by pocock
Is it possible to use first_notification_delay for warnings only?

Consider check_disk, for example:

- if the usage exceeds the warning threshold for 60 minutes or more,
send a warning email

- if the usage exceeds the critical threshold, send the critical email
alert immediately (ignore the first_notification_delay)

Re: first_notification_delay for warnings only?

Posted: Sun Dec 01, 2013 5:23 pm
by jsmurphy
Not directly no, first_notification_delay effects the service as a whole and that can't be modified.

You could accomplish this though by configuring two difference service checks one with the warning threshold and notification delay, the other service would have the critical threshold. You would then create a service dependency where the warning service is dependent on the critical service.

Honestly it's probably more effort than it's worth but if you desperately need it... that's how you could do it.

Re: first_notification_delay for warnings only?

Posted: Mon Dec 02, 2013 1:29 pm
by tmcdonald
pocock, let us know if this works out for you.