mirror of https://github.com/Icinga/icinga2.git
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:
parent
2d53cdb845
commit
77f59887c1
|
@ -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.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue