Update documentation.

This commit is contained in:
Gunnar Beutner 2013-10-07 15:02:12 +02:00
parent 9d5edebd73
commit 1d00009c03
3 changed files with 29 additions and 8 deletions

View File

@ -1,3 +1,5 @@
## Commands
Icinga 2 uses command objects to specify how checks should be performed.
TODO

View File

@ -365,9 +365,8 @@ Example:
> **Note**
>
> The `icinga` library is automatically loaded at startup.
<!--
> The `icinga` library is automatically loaded at startup. You don't need
> to load it manually.
### Type Definition
@ -413,9 +412,13 @@ The Pizza definition provides the following validation rules:
validation of the ingredients dictionary.
- Pizza objects may contain attribute matching the pattern
*custom::\** of any type.
`custom::*` of any type.
Valid types for type rules include: \* any \* number \* string \* scalar
(an alias for string) \* dictionary
Valid types for type rules include:
* any
* number
* string
* scalar (an alias for string)
* dictionary
-->

View File

@ -3,36 +3,52 @@
* in the conf.d directory (e.g. one per host). By default all *.conf
* files in this directory are included.
*/
object Host "localhost" {
object Host "localhost" inherits "generic-host" {
services["ping4"] = {
templates = [ "generic-service" ],
check_command = "ping4"
},
services["ping6"] = {
templates = [ "generic-service" ],
check_command = "ping6"
},
services["http"] = {
templates = [ "generic-service" ],
check_command = "http_ip"
},
services["ssh"] = {
templates = [ "generic-service" ],
check_command = "ssh"
},
services["load"] = {
templates = [ "generic-service" ],
check_command = "load"
},
services["processes"] = {
templates = [ "generic-service" ],
check_command = "processes"
},
services["users"] = {
templates = [ "generic-service" ],
check_command = "users"
},
services["disk"] = {
templates = [ "generic-service" ],
check_command = "disk"
},