From 6bdcf284ddb8db4b8c2f5088332e6e8c325bd38b Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 19 Aug 2023 13:27:45 +0200 Subject: [PATCH] Fix name conflict with icinga2-common Avoid name conflict with broken systemd checkcomand definition in icinga2-common. --- global-templates/commands.conf | 2 +- global-templates/services.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/global-templates/commands.conf b/global-templates/commands.conf index 32610d1..8870819 100644 --- a/global-templates/commands.conf +++ b/global-templates/commands.conf @@ -104,6 +104,6 @@ object CheckCommand "pgsql_socket" { vars.pgsql_username = "nagios" } -object CheckCommand "systemd" { +object CheckCommand "custom_systemd" { command = [ PluginContribDir + "/check_systemd" ] } diff --git a/global-templates/services.conf b/global-templates/services.conf index 217967a..57272e3 100644 --- a/global-templates/services.conf +++ b/global-templates/services.conf @@ -153,7 +153,7 @@ apply Service "ssh" { apply Service "systemd" { import "generic-service" - check_command = "systemd" + check_command = "custom_systemd" assign where host.vars.debian_release && host.vars.debian_release >= 12 }