From aad2376ac0e9f1b055151e690dd3c978970bc112 Mon Sep 17 00:00:00 2001 From: Ricardo Bartels Date: Thu, 2 Apr 2020 08:39:42 +0200 Subject: [PATCH] added missing cli args for V2.0 --- contrib/icinga2_check_command_definition.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/contrib/icinga2_check_command_definition.conf b/contrib/icinga2_check_command_definition.conf index a8bfc49..1c034e1 100644 --- a/contrib/icinga2_check_command_definition.conf +++ b/contrib/icinga2_check_command_definition.conf @@ -1,9 +1,9 @@ object CheckCommand "http_json" { - import "plugin-check-command" + import "plugin-check-command" - command = [ PluginDir + "/check_http_json.py" ] + command = [ PluginDir + "/check_http_json.py" ] - arguments = { + arguments = { "--host" = { value = "$address$" description = "Hostname or address of the interface to query" @@ -53,12 +53,14 @@ object CheckCommand "http_json" { value = "$http_json_headers$" description = "additional http headers in JSON format to send with the request" } - "--field_separator" = { value = "$http_json_field_separator$" description = "JSON Field separator, defaults to '.'; Select element in an array with '(' ')'" } - + "--value_separator" = { + value = "$http_json_value_separator$" + description = "JSON Value separator, defaults to ':'" + } "--warning" = { value = "$http_json_warning$" description = "Warning threshold for these values, WarningRange is in the format [@]start:end"