Hi all, I would like to create some templates for the various servers we have 
in our network.

I would like to do something as follows:

#Host template
define host {
        name                    http-server
        host_name               http-server
        register                0
}
#Service Template for http servers
define service {
        host_name               http-server
        check_command           check_http
        service_description     HTTP
        register                0
}

#Now define some real servers

#www1
define host {
        use                     http-server
        host_name               www1
        address                 10.0.0.1
}

#www2
define host {
        use                     http-server
        host_name               www1
        address                 10.0.0.2
}

I would expect to have two hosts with both having one service called HTTP. 
However this doesn't work. There are two hosts, but without any services.

Is there a way to have hosts also inherit the template's services?

Thanks alot for your info!

-Matthieu


-------------------------------------------------------------------------
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
[email protected]
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

Reply via email to