From 36bd1e74853fdc97f771ee4abeca0b3dd910dc97 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 29 Sep 2022 18:16:46 -0400 Subject: [PATCH] Add CheckCommand definition for Icinga2 --- check_home_assistant.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 check_home_assistant.conf diff --git a/check_home_assistant.conf b/check_home_assistant.conf new file mode 100644 index 0000000..5a1c120 --- /dev/null +++ b/check_home_assistant.conf @@ -0,0 +1,21 @@ +object CheckCommand "home_assistant" { + command = [ PluginContribDir + "/check_home_assistant/check_home_assistant.py" ] + arguments = { + "--token" = { + value = "$home_assistant_token$" + description = "API token for Home Assistant" + } + "--url" = { + value = "$home_assistant_url$" + description = "URL for Home Assistant" + } + "--warning" = { + value = "$home_assistant_warning$" + description = "Return warning if battery percentage is outside RANGE" + } + "--critical" = { + value = "$home_assistant_critical$" + description = "Return critical if battery percentage is outside RANGE" + } + } +} \ No newline at end of file