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 }