first_notification_delay for warnings only?

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

first_notification_delay for warnings only?

Postby pocock » Thu Nov 28, 2013 3:25 am

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)
Posts: 1
Joined: Thu Nov 28, 2013 3:19 am

Re: first_notification_delay for warnings only?

Postby jsmurphy » Sun Dec 01, 2013 5:23 pm

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

Re: first_notification_delay for warnings only?

Postby tmcdonald » Mon Dec 02, 2013 1:29 pm

pocock, let us know if this works out for you.
Former Nagios employee
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Return to Community Support

Who is online

Users browsing this forum: No registered users and 22 guests