Update dummy CheckCommand

fixes #4987

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
Thomas Widhalm 2017-02-10 11:30:06 +01:00 committed by Michael Friedrich
parent bb01dbd953
commit 8260b728b0
1 changed files with 16 additions and 5 deletions

View File

@ -138,11 +138,22 @@ object CheckCommand "fping6" {
}
object CheckCommand "dummy" {
command = [
PluginDir + "/check_dummy",
"$dummy_state$",
"$dummy_text$"
]
command = [ PluginDir + "/check_dummy" ]
arguments = {
"state" = {
value = "$dummy_state$"
skip_key = true
order = 1
description = "The state. Can be one of 0 (ok), 1 (warning), 2 (critical) and 3 (unknown). Defaults to 0."
}
"text" = {
value = "$dummy_text$"
skip_key = true
order = 2
description = "Plugin output. Defaults to Check was successful."
}
}
vars.dummy_state = 0
vars.dummy_text = "Check was successful."