first_notification_delay for warnings only?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
pocock
Posts: 1
Joined: Thu Nov 28, 2013 3:19 am

first_notification_delay for warnings only?

Post 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)
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: first_notification_delay for warnings only?

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: first_notification_delay for warnings only?

Post by tmcdonald »

pocock, let us know if this works out for you.
Former Nagios employee
Locked