mirror of https://github.com/Icinga/icinga2.git
parent
fb038b3e4f
commit
f64ba65ead
|
@ -16,7 +16,7 @@ Here is an example of a host object which defines two child services:
|
|||
|
||||
object Host "my-server1" {
|
||||
vars.address = "10.0.0.1"
|
||||
check = "ping4"
|
||||
check_command = "hostcheck"
|
||||
}
|
||||
|
||||
apply Service "ping4" {
|
||||
|
@ -32,17 +32,10 @@ Here is an example of a host object which defines two child services:
|
|||
The example host `my-server1` creates two services which belong to this host:
|
||||
`ping4` and `http`.
|
||||
|
||||
It also specifies that the host should inherit its availability state from the
|
||||
`ping4` service.
|
||||
It also specifies that the host should perform its own check using the `hostcheck`
|
||||
check command.
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> In Icinga 1.x hosts had their own check command, check interval and
|
||||
> notification settings. Instead, in Icinga 2 hosts inherit their state
|
||||
> from one of its child services. No checks are performed for the host
|
||||
> itself.
|
||||
|
||||
The `address` macro is used by check commands to determine which network
|
||||
The `address` custom attribute is used by check commands to determine which network
|
||||
address is associated with the host object.
|
||||
|
||||
### <a id="host-states"></a> Host States
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Event handlers are defined as `EventCommand` objects in Icinga 2.
|
||||
|
||||
Unlike notifications event commands are called on every service state change
|
||||
Unlike notifications event commands are called on every host/service state change
|
||||
if defined. Therefore the `EventCommand` object should define a command line
|
||||
evaluating the current service state and other service runtime attributes
|
||||
available through runtime macros. Runtime macros such as `$SERVICESTATETYPE$`
|
||||
|
|
|
@ -4,12 +4,6 @@
|
|||
|
||||
A host.
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> Unlike in Icinga 1.x hosts are not checkable objects in Icinga 2. Instead
|
||||
> hosts inherit their state from the service that is specified using the `check`
|
||||
> attribute.
|
||||
|
||||
Example:
|
||||
|
||||
object Host "localhost" {
|
||||
|
@ -17,7 +11,7 @@ Example:
|
|||
|
||||
groups = [ "all-hosts" ]
|
||||
|
||||
check = "ping"
|
||||
check_command = "hostcheck"
|
||||
}
|
||||
|
||||
Attributes:
|
||||
|
|
|
@ -19,7 +19,7 @@ the path of the plugins from the Monitoring Plugins project.
|
|||
|
||||
Check command object for the `check_ping` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -35,7 +35,7 @@ timeout | **Optional.** The plugin timeout in seconds. Defaults to 0 (no
|
|||
|
||||
Check command object for the `check_ping` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -47,11 +47,27 @@ cpl | **Optional.** The packet loss critical threshold in %. Default
|
|||
packets | **Optional.** The number of packets to send. Defaults to 5.
|
||||
timeout | **Optional.** The plugin timeout in seconds. Defaults to 0 (no timeout).
|
||||
|
||||
### <a id="itl-hostcheck"></a> hostcheck
|
||||
|
||||
Check command object for the `check_ping` plugin with host check default values.
|
||||
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
address | **Required.** The host's IPv4 address.
|
||||
wrta | **Optional.** The RTA warning threshold in milliseconds. Defaults to 3000.0.
|
||||
wpl | **Optional.** The packet loss warning threshold in %. Defaults to 80.
|
||||
crta | **Optional.** The RTA critical threshold in milliseconds. Defaults to 5000.0.
|
||||
cpl | **Optional.** The packet loss critical threshold in %. Defaults to 100.
|
||||
packets | **Optional.** The number of packets to send. Defaults to 5.
|
||||
timeout | **Optional.** The plugin timeout in seconds. Defaults to 0 (no timeout).
|
||||
|
||||
### <a id="itl-dummy"></a> dummy
|
||||
|
||||
Check command object for the `check_dummy` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -62,7 +78,7 @@ text | **Optional.** Plugin output. Defaults to "Check was successful
|
|||
|
||||
Specialised check command object for passive checks executing the `check_dummy` plugin with appropriate default values.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -73,7 +89,7 @@ text | **Optional.** Plugin output. Defaults to "No Passive Check Res
|
|||
|
||||
Check command object for the `check_tcp` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -84,7 +100,7 @@ port | **Required.** The port that should be checked.
|
|||
|
||||
Check command object for the `check_udp` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -95,7 +111,7 @@ port | **Required.** The port that should be checked.
|
|||
|
||||
Check command object for the `check_http` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -105,7 +121,7 @@ vhost | **Required.** The name of the virtual host that should be chec
|
|||
|
||||
Check command object for the `check_http` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -115,7 +131,7 @@ address | **Required.** The host's address.
|
|||
|
||||
Check command object for the `check_http` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -125,7 +141,7 @@ vhost | **Required.** The name of the virtual host that should be chec
|
|||
|
||||
Check command object for the `check_http` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -135,7 +151,7 @@ address | **Required.** The host's address.
|
|||
|
||||
Check command object for the `check_smtp` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -145,7 +161,7 @@ address | **Required.** The host's address.
|
|||
|
||||
Check command object for the `check_ssmtp` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -156,7 +172,7 @@ port | **Optional.** The port that should be checked. Defaults to 465
|
|||
|
||||
Check command object for the `check_ntp_time` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -166,7 +182,7 @@ address | **Required.** The host's address.
|
|||
|
||||
Check command object for the `check_ssh` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -176,7 +192,7 @@ address | **Required.** The host's address.
|
|||
|
||||
Check command object for the `check_disk` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -187,7 +203,7 @@ cfree | **Optional.** The free space critical threshold in %. Defaults
|
|||
|
||||
Check command object for the `check_disk` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -198,7 +214,7 @@ cgreater | **Optional.** The user count critical threshold. Defaults to 5
|
|||
|
||||
Check command object for the `check_processes` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -209,7 +225,7 @@ cgreater | **Optional.** The process count critical threshold. Defaults t
|
|||
|
||||
Check command object for the `check_load` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -224,7 +240,7 @@ cload15 | **Optional.** The 15-minute critical threshold. Defaults to 4.
|
|||
|
||||
Check command object for the `check_snmp` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
@ -236,7 +252,7 @@ community | **Optional.** The SNMP community. Defaults to "public".
|
|||
|
||||
Check command object for the `check_snmp` plugin.
|
||||
|
||||
Macros:
|
||||
Custom Attributes:
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
|
|
Loading…
Reference in New Issue