mirror of https://github.com/Icinga/icinga2.git
parent
f64ba65ead
commit
3d419cd48b
|
@ -16,7 +16,7 @@ Here is an example of a host object which defines two child services:
|
||||||
|
|
||||||
object Host "my-server1" {
|
object Host "my-server1" {
|
||||||
vars.address = "10.0.0.1"
|
vars.address = "10.0.0.1"
|
||||||
check_command = "hostcheck"
|
check_command = "hostalive"
|
||||||
}
|
}
|
||||||
|
|
||||||
apply Service "ping4" {
|
apply Service "ping4" {
|
||||||
|
@ -32,7 +32,7 @@ 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:
|
The example host `my-server1` creates two services which belong to this host:
|
||||||
`ping4` and `http`.
|
`ping4` and `http`.
|
||||||
|
|
||||||
It also specifies that the host should perform its own check using the `hostcheck`
|
It also specifies that the host should perform its own check using the `hostalive`
|
||||||
check command.
|
check command.
|
||||||
|
|
||||||
The `address` custom attribute is used by check commands to determine which network
|
The `address` custom attribute is used by check commands to determine which network
|
||||||
|
|
|
@ -11,7 +11,7 @@ Example:
|
||||||
|
|
||||||
groups = [ "all-hosts" ]
|
groups = [ "all-hosts" ]
|
||||||
|
|
||||||
check_command = "hostcheck"
|
check_command = "hostalive"
|
||||||
}
|
}
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
|
@ -618,7 +618,7 @@ Cleanup Items:
|
||||||
eventhandlers_age |**Optional.** Max age for eventhandlers table rows (start_time). Defaults to 0 (never).
|
eventhandlers_age |**Optional.** Max age for eventhandlers table rows (start_time). Defaults to 0 (never).
|
||||||
externalcommands_age |**Optional.** Max age for externalcommands table rows (entry_time). Defaults to 0 (never).
|
externalcommands_age |**Optional.** Max age for externalcommands table rows (entry_time). Defaults to 0 (never).
|
||||||
flappinghistory_age |**Optional.** Max age for flappinghistory table rows (event_time). Defaults to 0 (never).
|
flappinghistory_age |**Optional.** Max age for flappinghistory table rows (event_time). Defaults to 0 (never).
|
||||||
hostchecks_age |**Optional.** Max age for hostchecks table rows (start_time). Defaults to 0 (never).
|
hostchecks_age |**Optional.** Max age for hostalives table rows (start_time). Defaults to 0 (never).
|
||||||
logentries_age |**Optional.** Max age for logentries table rows (logentry_time). Defaults to 0 (never).
|
logentries_age |**Optional.** Max age for logentries table rows (logentry_time). Defaults to 0 (never).
|
||||||
notifications_age |**Optional.** Max age for notifications table rows (start_time). Defaults to 0 (never).
|
notifications_age |**Optional.** Max age for notifications table rows (start_time). Defaults to 0 (never).
|
||||||
processevents_age |**Optional.** Max age for processevents table rows (event_time). Defaults to 0 (never).
|
processevents_age |**Optional.** Max age for processevents table rows (event_time). Defaults to 0 (never).
|
||||||
|
@ -702,7 +702,7 @@ Cleanup Items:
|
||||||
eventhandlers_age |**Optional.** Max age for eventhandlers table rows (start_time). Defaults to 0 (never).
|
eventhandlers_age |**Optional.** Max age for eventhandlers table rows (start_time). Defaults to 0 (never).
|
||||||
externalcommands_age |**Optional.** Max age for externalcommands table rows (entry_time). Defaults to 0 (never).
|
externalcommands_age |**Optional.** Max age for externalcommands table rows (entry_time). Defaults to 0 (never).
|
||||||
flappinghistory_age |**Optional.** Max age for flappinghistory table rows (event_time). Defaults to 0 (never).
|
flappinghistory_age |**Optional.** Max age for flappinghistory table rows (event_time). Defaults to 0 (never).
|
||||||
hostchecks_age |**Optional.** Max age for hostchecks table rows (start_time). Defaults to 0 (never).
|
hostchecks_age |**Optional.** Max age for hostalives table rows (start_time). Defaults to 0 (never).
|
||||||
logentries_age |**Optional.** Max age for logentries table rows (logentry_time). Defaults to 0 (never).
|
logentries_age |**Optional.** Max age for logentries table rows (logentry_time). Defaults to 0 (never).
|
||||||
notifications_age |**Optional.** Max age for notifications table rows (start_time). Defaults to 0 (never).
|
notifications_age |**Optional.** Max age for notifications table rows (start_time). Defaults to 0 (never).
|
||||||
processevents_age |**Optional.** Max age for processevents table rows (event_time). Defaults to 0 (never).
|
processevents_age |**Optional.** Max age for processevents table rows (event_time). Defaults to 0 (never).
|
||||||
|
|
|
@ -47,7 +47,7 @@ cpl | **Optional.** The packet loss critical threshold in %. Default
|
||||||
packets | **Optional.** The number of packets to send. Defaults to 5.
|
packets | **Optional.** The number of packets to send. Defaults to 5.
|
||||||
timeout | **Optional.** The plugin timeout in seconds. Defaults to 0 (no timeout).
|
timeout | **Optional.** The plugin timeout in seconds. Defaults to 0 (no timeout).
|
||||||
|
|
||||||
### <a id="itl-hostcheck"></a> hostcheck
|
### <a id="itl-hostalive"></a> hostalive
|
||||||
|
|
||||||
Check command object for the `check_ping` plugin with host check default values.
|
Check command object for the `check_ping` plugin with host check default values.
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* all hosts should import this template.
|
* all hosts should import this template.
|
||||||
*/
|
*/
|
||||||
template Host "generic-host" {
|
template Host "generic-host" {
|
||||||
check_command = "hostcheck"
|
check_command = "hostalive"
|
||||||
}
|
}
|
||||||
|
|
||||||
template Host "linux-server" {
|
template Host "linux-server" {
|
||||||
|
|
|
@ -61,7 +61,7 @@ object CheckCommand "ping6" {
|
||||||
vars.timeout = 0
|
vars.timeout = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
object CheckCommand "hostcheck" {
|
object CheckCommand "hostalive" {
|
||||||
import "ping4"
|
import "ping4"
|
||||||
|
|
||||||
vars.wrta = 3000.0,
|
vars.wrta = 3000.0,
|
||||||
|
|
Loading…
Reference in New Issue