Active Host Checks on Nagios 2.5
Andrew Tjang
andrew.tjang at ask.com
Sat May 12 00:31:37 CEST 2007
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{
name generic-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_information 1 ; Retain non-status
information across program restarts
active_checks_enabled 1 ;
passive_checks_enabled 1 ;
register 0 ; 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_period 24x7
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}
Command:
define command{
command_name check_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 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