From 77f59887c159685bb9e5f3fc75574b6031292eab Mon Sep 17 00:00:00 2001 From: Manuel Reiter Date: Wed, 20 Jul 2016 23:19:09 +0200 Subject: [PATCH] Add support for "-A" command line switch to CheckCommand "snmp-process" Support for "-A" command line switch to CheckCommand "snmp-process" added in command-plugins-manubulon.conf. Further details can be found in issue #12189. fixes #12189 Signed-off-by: Michael Friedrich --- doc/7-icinga-template-library.md | 1 + itl/command-plugins-manubulon.conf | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index a3011f599..a84e12b8a 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -1676,6 +1676,7 @@ snmp_crit | **Optional.** The critical threshold. snmp_process_name | **Optional.** Name of the process (regexp). No trailing slash!. Defaults to ".*". snmp_perf | **Optional.** Enable perfdata values. Defaults to true. snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 5 seconds. +snmp_process_use_params | **Optional.** Add process parameters to process name for regexp matching. Example: "named.*-t /var/named/chroot" will only select named process with this parameter. Defaults to false. diff --git a/itl/command-plugins-manubulon.conf b/itl/command-plugins-manubulon.conf index fc7fd7f01..1ddb81db3 100644 --- a/itl/command-plugins-manubulon.conf +++ b/itl/command-plugins-manubulon.conf @@ -231,11 +231,15 @@ object CheckCommand "snmp-process" { "-F" = { set_if = "$snmp_perf$" } + "-A" = { + set_if = "$snmp_process_use_params$" + } } vars.snmp_process_name = ".*" vars.snmp_warn = 0 vars.snmp_crit = 0 vars.snmp_perf = true + vars.snmp_process_use_params = false }