Nagios not honoring large check_interval

Mark Gius mgius at createspace.com
Thu Aug 27 21:48:03 CEST 2009


It turns out that the problem was a bad time on the nagios server that 
got fixed between checks.  So between the two hour checks the clock 
jumped forward an hour, and the next check went off right on schedule.

What are the odds...

-Gius

Mark Gius wrote:
> Running stock Nagios 3.0.6 compiled for Red Hat 4.
>
> I have a service check that I only want performed every 2 hours.  I've 
> set up the service check as follows
>
> define service {
>     name my_service 
>     stuff not shown
>
>     register           0
>
>     check_interval     120
>     retry_interval     15
>     max_check_attempts 2
> }
>
> In another file this service is "activated" like so
>
> define service {
>    use my_service
> }
>
> In my nagios.cfg interval_length=60
>
> The service shows up in the view config bit in Nagios as checking every 
> two hours, but the actual behavior of Nagios is to run the check every hour.
>
> I looked through some of the scheduling code, but I'm not seeing 
> anything obvious.  Comparing the scheduling code in checks.c for my 
> version to HEAD isn't throwing up any red flags as well. 
>
> Has anyone else encountered this behavior?
>
> -Gius
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> 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
>
>   


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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