normal_check_interval misbehaving?

Hiren Patel hir3npatel at gmail.com
Sun Feb 8 16:15:51 CET 2009


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
> }
> 
> define command {
>          command_name            check_remote_spatialsync
>          command_line            $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c check_spatialsync
> }
> 

> ..........
> 
> 
> I've checked, and the interval_length is set to 60 like I intended it to 
> be:
> 
> [root at nagios3 etc]# grep interval_length nagios.cfg
> interval_length=60
> 
> 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.
> 
> Thanks!
>


is the active-service template set to check freshness, if so what is its 
value? I suspect the check results are getting stale and forcing an 
active check, this can be verified from the nagios logs on the nagios 
server though (perhaps depending on logging options?)

------------------------------------------------------------------------------
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