Re: [Nagios-users] Active Host Checks on Nagios 2.5

2007-05-11 Thread Patrick Morris
On Fri, 2007-05-11 at 18:31 -0400, Andrew Tjang wrote:
> Hello all,
> 
> I have a problem where Nagios doesn't execute the active host checks at
> all. My system is set up in the following way:
> 
> I have about 1000 machines w/ their services set to disable active
> check, and get all state info from an external command file (passive
> checks).
> 
> To this I added 2 hosts w/ services in which I've enabled active checks,
> and provided a check command (config below). What happens is the
> services get actively checked and updated, but Nagios assumes the host
> is up (I guess because the services are returning values), and never
> executes the host check. This is troubling because the host check
> provides me with important data.

This is normal nagios behavior.  If you want the data a host check would
provide even when there are no service state changes (which is the only
condition under which host checks will normally run), you should
probably consider running it also as a service check.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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


[Nagios-users] Active Host Checks on Nagios 2.5

2007-05-11 Thread Andrew Tjang
Hello all,

I have a problem where Nagios doesn't execute the active host checks at
all. My system is set up in the following way:

I have about 1000 machines w/ their services set to disable active
check, and get all state info from an external command file (passive
checks).

To this I added 2 hosts w/ services in which I've enabled active checks,
and provided a check command (config below). What happens is the
services get actively checked and updated, but Nagios assumes the host
is up (I guess because the services are returning values), and never
executes the host check. This is troubling because the host check
provides me with important data.

In another instance, I have a host with active check enabled, and its
services' active checks disabled. Here, Nagios just keeps the host and
all its services in a "pending" stage until the services return with
information, again never executing the host check.

Any insight would be extremely helpful. Thanks!
-Andrew


Config of Host:

Template:
define host{
namegeneric-host-active; The
name of this host template
notifications_enabled   1   ; Host notifications are
enabled
event_handler_enabled   1   ; Host event handler is
enabled
flap_detection_enabled  1   ; Flap detection is
enabled
failure_prediction_enabled  1   ; Failure prediction is
enabled
process_perf_data   1   ; Process performance
data
retain_status_information   1   ; Retain status
information across program restarts
retain_nonstatus_information1   ; Retain non-status
information across program restarts
active_checks_enabled   1   ;
passive_checks_enabled  1   ;
register0   ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
Host:
define host{
use generic-host-active; Name of host template
to use   
host_name   NagiosServer
alias   NagiosServer
hostgroups  Nagios
checks_enabled 1
check_command check_nagios
address 127.0.0.1
max_check_attempts  10
check_period24x7
notification_interval   120
notification_period 24x7
notification_optionsd,r
contact_groups admins
}

Command:
define command{
command_namecheck_nagios
  command_line$USER1$/check_nagios.pl  
}


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
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