mirror of https://github.com/Icinga/icinga2.git
Update documentation.
This commit is contained in:
parent
9d5edebd73
commit
1d00009c03
|
@ -1,3 +1,5 @@
|
|||
## Commands
|
||||
|
||||
Icinga 2 uses command objects to specify how checks should be performed.
|
||||
|
||||
TODO
|
||||
|
|
|
@ -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
|
||||
|
||||
-->
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue