mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Update documentation.
This commit is contained in:
parent
9d5edebd73
commit
1d00009c03
@ -1,3 +1,5 @@
|
|||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
|
Icinga 2 uses command objects to specify how checks should be performed.
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
|
@ -365,9 +365,8 @@ Example:
|
|||||||
|
|
||||||
> **Note**
|
> **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
|
### Type Definition
|
||||||
|
|
||||||
@ -413,9 +412,13 @@ The Pizza definition provides the following validation rules:
|
|||||||
validation of the ingredients dictionary.
|
validation of the ingredients dictionary.
|
||||||
|
|
||||||
- Pizza objects may contain attribute matching the pattern
|
- 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
|
Valid types for type rules include:
|
||||||
(an alias for string) \* dictionary
|
|
||||||
|
* 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
|
* in the conf.d directory (e.g. one per host). By default all *.conf
|
||||||
* files in this directory are included.
|
* files in this directory are included.
|
||||||
*/
|
*/
|
||||||
object Host "localhost" {
|
object Host "localhost" inherits "generic-host" {
|
||||||
services["ping4"] = {
|
services["ping4"] = {
|
||||||
|
templates = [ "generic-service" ],
|
||||||
|
|
||||||
check_command = "ping4"
|
check_command = "ping4"
|
||||||
},
|
},
|
||||||
|
|
||||||
services["ping6"] = {
|
services["ping6"] = {
|
||||||
|
templates = [ "generic-service" ],
|
||||||
|
|
||||||
check_command = "ping6"
|
check_command = "ping6"
|
||||||
},
|
},
|
||||||
|
|
||||||
services["http"] = {
|
services["http"] = {
|
||||||
|
templates = [ "generic-service" ],
|
||||||
|
|
||||||
check_command = "http_ip"
|
check_command = "http_ip"
|
||||||
},
|
},
|
||||||
|
|
||||||
services["ssh"] = {
|
services["ssh"] = {
|
||||||
|
templates = [ "generic-service" ],
|
||||||
|
|
||||||
check_command = "ssh"
|
check_command = "ssh"
|
||||||
},
|
},
|
||||||
|
|
||||||
services["load"] = {
|
services["load"] = {
|
||||||
|
templates = [ "generic-service" ],
|
||||||
|
|
||||||
check_command = "load"
|
check_command = "load"
|
||||||
},
|
},
|
||||||
|
|
||||||
services["processes"] = {
|
services["processes"] = {
|
||||||
|
templates = [ "generic-service" ],
|
||||||
|
|
||||||
check_command = "processes"
|
check_command = "processes"
|
||||||
},
|
},
|
||||||
|
|
||||||
services["users"] = {
|
services["users"] = {
|
||||||
|
templates = [ "generic-service" ],
|
||||||
|
|
||||||
check_command = "users"
|
check_command = "users"
|
||||||
},
|
},
|
||||||
|
|
||||||
services["disk"] = {
|
services["disk"] = {
|
||||||
|
templates = [ "generic-service" ],
|
||||||
|
|
||||||
check_command = "disk"
|
check_command = "disk"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user