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 <michael.friedrich@netways.de>
This commit is contained in:
Manuel Reiter 2016-07-20 23:19:09 +02:00 committed by Michael Friedrich
parent 2d53cdb845
commit 77f59887c1
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -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
}