Services not being associated with hosts

Bruce Thayre bruce at mipscomputation.com
Thu Aug 20 23:41:24 CEST 2009


Hello,
I've been trying to debug this issue for some time but i'm stuck and have
not found a solution.  Nagios -v nagios.cfg has no complaints, just warns me
that services are not associated with hosts:

Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
        Checked 8 services.
Checking hosts...
Warning: Host 'ipdream' has no services associated with it!
Warning: Host 'rails_playground' has no services associated with it!
        Checked 3 hosts.
Checking host groups...
        Checked 1 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
        Checked 1 contacts.
Checking contact groups...
        Checked 1 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 25 commands.
Checking time periods...
        Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 2
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight
check


My hosts.cfg, services.cfg, and commands.cfg have been stripped down so
nothing else would cause these issues and look like:

#### RELEVANT PARTS OF COMMANDS.CFG ###

define command{
        command_name    check-site
    command_line    $USER1$/check_ping -H $ARG1 -w 3000.0,80% -c 5000.0,100%
-p 5
    }

##### HOSTS.CFG######

define host{
        use                                        generic-host
        host_name                             rails_playground
        alias                                      rails
        address                                 <ip_addr_of_host>
        contacts                                nagiosadmin
        contact_groups                      admins
}

define host{
        use                                       generic-host
        host_name                             ipdream
        alias                                      rails
        address                                 <ip_addr_of_host>
    contacts                                    nagiosadmin
        contact_groups                      admins
}


#### SERVICES.CFG #####


define service{
        use                                             generic-service
        display_name                    ipdream
        host_name                               ipdream
        check_command                   check-host-alive
        contacts                                nagiosadmins
}

define service{
        use                                             generic-service
        display_name                    rails_playground
        host_name                               rails_playground
        check_command                   check-host-alive
        contacts                                nagiosadmins
}

## ALL REMAINING SERVICES LOOK LIKE FOLLOWING ENTRY WITH DIFFERENT URLS ####
define service{
        use                                             generic-service
        display_name                    check_helpdesk
        host_name                               rails_playground
        check_command                   check-site!helpdesk_URL
        contacts                                nagiosadmins
}

I don't see how there are zero services attached to my host, the services
are registered properly, just never associated with hosts.  Any help would
be greatly appreciated

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090820/f7b8f0a6/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-------------- next part --------------
_______________________________________________
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