Fix example configuration.

This commit is contained in:
Gunnar Beutner 2013-10-02 14:36:52 +02:00
parent 3a740f2e3b
commit 714b22d790
2 changed files with 10 additions and 10 deletions

View File

@ -63,7 +63,6 @@ Here's a brief description of the example config:
Icinga 2 supports [C/C++-style comments](#comments). Icinga 2 supports [C/C++-style comments](#comments).
include <itl/itl.conf> include <itl/itl.conf>
include <itl/standalone.conf>
The *include* directive can be used to include other files. The *itl/itl.conf* The *include* directive can be used to include other files. The *itl/itl.conf*
file is distributed as part of Icinga 2 and provides a number of useful templates file is distributed as part of Icinga 2 and provides a number of useful templates
@ -116,35 +115,35 @@ The *conf.d/localhost.conf* file contains our first host definition:
*/ */
object Host "localhost" { object Host "localhost" {
services["ping4"] = { services["ping4"] = {
templates = [ "ping4" ] check_command = "ping4"
}, },
services["ping6"] = { services["ping6"] = {
templates = [ "ping6" ] check_command = "ping6"
}, },
services["http"] = { services["http"] = {
templates = [ "http_ip" ] check_command = "http_ip"
}, },
services["ssh"] = { services["ssh"] = {
templates = [ "ssh" ] check_command = "ssh"
}, },
services["load"] = { services["load"] = {
templates = [ "load" ] check_command = "load"
}, },
services["processes"] = { services["processes"] = {
templates = [ "processes" ] check_command = "processes"
}, },
services["users"] = { services["users"] = {
templates = [ "users" ] check_command = "users"
}, },
services["disk"] = { services["disk"] = {
templates = [ "disk" ] check_command = "disk"
}, },
macros = { macros = {
@ -155,6 +154,7 @@ The *conf.d/localhost.conf* file contains our first host definition:
check = "ping4", check = "ping4",
} }
This defines a host named "localhost" which has a couple of services. Services This defines a host named "localhost" which has a couple of services. Services
may inherit from one or more service templates. may inherit from one or more service templates.

View File

@ -13,7 +13,7 @@ object Host "localhost" {
}, },
services["http"] = { services["http"] = {
check_command = "http" check_command = "http_ip"
}, },
services["ssh"] = { services["ssh"] = {