Marc Powell ha scritto: > On Nov 27, 2008, at 11:00 AM, Simone Felici wrote: > >> Thank's Marc, but let me understood... Should Nagios perform host >> checks only if needed? >> I.e. if a service goes critical or change state? >> Or are true both questions? > > In your configuration, nagios will do both active and on-demand > checks. Nagios will normally do on-demand checks just by specifying > 'active_checks_enabled 1'. When you also specified 'check_interval 5', > you told nagios that it should perform regularly timed checks of the > host as well. If you don't want regularly checks, leave out the > check_interval directive entirely. > > I'm not sure where that's coming from since it wasn't in your original > posting of the host definition or template. Was it ever set that way > or currently set like that and left out of your original posting? > > -- > Marc >
In my first post I've pasted the configuration from hosts.cfg and hosts_templates.cfg. It means from original configuration. The second post I've pasted the conten of the status file. NOW I've NO IDEA where the check_interval directive is taken. Do you have any idea? Should I set it to "x" seconds to be shure che active check will be done exactly every "x" seconds (example 300)? ...expect, of course, on-demand checks. Because I've no idea where nagios take the check_interval directive from the configuration. Maybe setting it to "0" does the trick? :) Thank's simon ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users@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