Add "random" CheckCommand for test and demo purposes

fixes #8816
This commit is contained in:
Michael Friedrich 2015-03-19 14:36:53 +01:00
parent 6c8bc20369
commit 454a8c9a49
3 changed files with 15 additions and 0 deletions

View File

@ -58,6 +58,14 @@ Name | Description
-------------|---------------
cluster_zone | **Optional.** The zone name. Defaults to "$host.name$".
### <a id="itl-random"></a> random
Check command for the built-in `random` check. This check returns random states
and adds the check source to the check output.
For test and demo purposes only. The `random` check command does not support
any vars.
# <a id="plugin-check-commands"></a> Plugin Check Commands
The Plugin Check Commands provides example configuration for plugin check commands

View File

@ -31,3 +31,6 @@ object CheckCommand "cluster-zone" {
vars.cluster_zone = "$host.name$"
}
object CheckCommand "random" {
import "random-check-command"
}

View File

@ -46,3 +46,7 @@ template NotificationCommand "plugin-notification-command" {
template EventCommand "plugin-event-command" {
execute = PluginEvent
}
template CheckCommand "random-check-command" {
execute = RandomCheck
}