From e1300afeee4cc1f61090ceee161dcba47fceed6b Mon Sep 17 00:00:00 2001 From: "Rinck H. Sonnenberg" Date: Fri, 3 Apr 2020 12:06:29 +0200 Subject: [PATCH] Added parameter to monitor a specific jail only, as this has been available in the original check_command for years but hasn't made it into the checkcommand yet --- doc/10-icinga-template-library.md | 3 ++- itl/plugins-contrib.d/network-services.conf | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 83377f5c6..ef456a639 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -3304,7 +3304,8 @@ fail2ban_path | **Optional.** Specify the path to the tw_cli binary, d fail2ban_warning | **Optional.** Specify a warning threshold, default is 1 fail2ban_critical | **Optional.** Specify a critical threshold, default is 2 fail2ban_socket | **Optional.** Specify a socket path, default is unset -fail2ban_perfdata | **Optional.** If set to true, activate the perfdata output, default value for the plugin is set to true. +fail2ban_perfdata | **Optional.** If set to true, activate the perfdata output, default value for the plugin is set to true +fail2ban_jail | **Optional.** Specify the name of the specific jail to monitor; omitted by default, i.e. all jails are being monitored. ### Operating System diff --git a/itl/plugins-contrib.d/network-services.conf b/itl/plugins-contrib.d/network-services.conf index 89554e4cc..28eb42c04 100644 --- a/itl/plugins-contrib.d/network-services.conf +++ b/itl/plugins-contrib.d/network-services.conf @@ -113,6 +113,10 @@ object CheckCommand "fail2ban" { set_if = "$fail2ban_perfdata$" description = "If set to true, activate the perfdata output" } + "-j" = { + value = "$fail2ban_jail$" + description = "Specify the name of the specific jail to monitor; omitted by default, i.e. all jails are being monitored" + } } vars.fail2ban_perfdata = true