From c634ae8bb5d34182277388c1d7671c92772e460d Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 9 Apr 2025 11:51:35 +0200 Subject: [PATCH] add unreachable-state option to icinga2 config --- contrib/icinga2_check_command_definition.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/icinga2_check_command_definition.conf b/contrib/icinga2_check_command_definition.conf index fd10741..f79c70d 100644 --- a/contrib/icinga2_check_command_definition.conf +++ b/contrib/icinga2_check_command_definition.conf @@ -89,6 +89,10 @@ object CheckCommand "http_json" { value = "$http_json_key_equals_unknown$" description = "Checks equality of these keys and values. Return unknown if equality check fails" } + "--unreachable-state" = { + value = "$http_json_unreachable_state$" + description = "Exit with specified code if URL unreachable. Examples: 1 for Warning, 2 for Critical, 3 for Unknown (default: 3)" + } "--key_not_equals" = { value = "$http_json_key_not_equals$" description = "Checks equality of these keys and values (key[>alias],value key2,value2) to determine status. Multiple key values can be delimited with colon (key,value1:value2). Return warning if equality check succeeds."