normal_check_interval misbehaving?

Marc Powell marc at ena.com
Sat Feb 7 00:28:27 CET 2009


On Feb 6, 2009, at 4:06 PM, Jason Marshall wrote:

> Hi all, I've been scratching my head on this one for a couple days.
>
> I have a service defined that can only run once an hour.  If it runs  
> much
> more often than that, the check program (which I didn't write) often  
> steps
> on its own feet and returns a critical failure.  The service runs  
> via NRPE
> if that matters...
>
> Anyway, I have the normal_check_interval set to 60, and  
> max_check_attempts
> set to 1.  So it should run once an hour, and only once even if it  
> fails.
> But it runs every 10 minutes instead!
>
> Here is some of my config:
>
> define service {
>         use                     active-service
>         host_name               cal-map1
>         service_description     active-remote-spatialsync
>         check_command           check_remote_spatialsync
>         contact_groups          xxxxxxxx
>         normal_check_interval   60
>         max_check_attempts      1
> }

[chop]

> The wrapper that runs on the remote machine is logging the output of  
> the
> date command and appending it to a simple log file so I can tell for  
> sure
> how often it's being run -- every 10 minutes, like clockwork!
>
> How come 10 minutes and not 60??
>
> My head is hurting from all the scratching.  I suspect it's something
> stupid and tiny that I've missed, but would appreciate your help,  
> even if
> it just points to some arcane area of the documentation.

Did it used to be 10 minutes? The config, as you've detailed it, is  
correct. I suspect you have multiple nagios daemons running at the  
same time, one with a 10 minute interval and one with the 60 minute  
interval. Do you, at times about 60 minutes apart, have two that are  
logged close to one another? I would stop nagios and use ps to verify  
that there isn't another hanging about.

--
Marc


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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