Hosts not being checked


#1

Hi,

I am having a problem setting the Hostchecks to my newly added hosts. The hosts I imported are working fine, but the newly added are being a pain.

I am using NagiosQL to set up my configuration.

When I restart nagios there are no problems.

All the hosts (after 12 hours) remain as Pending, and when I click on them from Nagios admin interface, I get: This host has not yet been checked, so status information is not available.

When I click on the Host Group, I get:

If I forcecheck a host, it does work however.

This is a sample copy of my localhost-XYZ.cfg residing in /services folder:

[code]define service {
host_name A,list,of,129,hosts
service_description HTTP
is_volatile 1
check_command check_http
max_check_attempts 10
normal_check_interval 10
retry_check_interval 2
active_checks_enabled 1
passive_checks_enabled 1
check_period 24x7
parallelize_check 1
obsess_over_service 1
check_freshness 0
event_handler notify-by-email
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
contact_groups admins
notification_interval 11
notification_period 24x7
notification_options w,u,c,r
notifications_enabled 1
register 1
}

define service {
host_name A,list,of,7,hosts
service_description PING
is_volatile 0
check_command check_ping!100.0,20%!500.0,60%
max_check_attempts 10
normal_check_interval 10
retry_check_interval 2
active_checks_enabled 1
passive_checks_enabled 1
check_period 24x7
parallelize_check 1
obsess_over_service 1
check_freshness 0
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
contact_groups admins
notification_interval 11
notification_period 24x7
notification_options w,u,c,r
notifications_enabled 1
register 1
}[/code]

Sorry I had to supress the hostnames, but the nature of my job does not allow me to do so.

This is a sample copy from one of the numerous .cfg which I have in /hosts

define  host {
        host_name                       SampleHost
        alias                           SampleHost
        address                         www.samplehost.com
        parents                         1-from-the-7-in-hostgroups
        hostgroups                      1-from-the-7-in-hostgroups
        check_command                   check_http
        max_check_attempts              2
        active_checks_enabled           1
        passive_checks_enabled          1
        check_period                    24x7
        obsess_over_host                1
        check_freshness                 1
        event_handler                   host-notify-by-email
        event_handler_enabled           1
        flap_detection_enabled          1
        failure_prediction_enabled      1
        process_perf_data               0
        retain_status_information       1
        retain_nonstatus_information    1
        contact_groups                  admins
        notification_interval           11
        notification_period             24x7
        notification_options            d,u,r,f
        notifications_enabled           1
        register                        1
        }     

Any help in fixing this problem is surely appreciated!!

Warm regards

Matthew