Delay hostchecks?

Mike Emigh maemigh at gmail.com
Thu Oct 5 17:15:39 CEST 2006


On 10/4/06, Fredrik Vöcks <Fredrik.Vocks at labs2.com> wrote:
>
>
>
>
> Hello,
>
>  Is it possible to delay hostchecks until after you've done all retries
> stated in the service defintion? If for example a service check fails once
> Nagios will immediately start doing hostchecks. This is not very good
> because a short reboot/power failure/ etc will make Nagios send alarms about
> host being down. Especially bad is this during weekend when people are hired
> to monitor and get these kind of alarms in the middle of the night.
>
>  The behaviour in Nagios is;
>
>  Service check fails 09:00 -> host check 09:00 -> Send Alarm
>
>  I want to have a 15 minute period before Nagios starts doing hostchecks,
> like this;
>
>  Service check fails 09:00 -> wait 1 min -> Service check fails 09:01 ->
> repeat 13 times -> host check 09:15 -> Send Alarm
>
>
>  Im using Nagios 2.4.
>
>  Regards,
>  Anders
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>

If you are able to search through the archives, I posted a workaround
which works similar to what you want.  Basically, you pass the
notification number in the notification command and have the
notification command call a script.  This script checks the
notification number and if it is 1 then exit, if it is 2 or higher
then send an email/page/etc.

This is oversimplifying it, but you should get the idea.

Mike

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list