Plugin Check Commands: Fix snmp-load threshold values

Fix snmp-load threshold values to suppoprt "-T stand" param in check command.
To use 3 values, change the snmp_load_type var to "netsl".

fixes #7351

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
This commit is contained in:
Carlos Cesario 2014-10-07 11:22:09 -03:00 committed by Michael Friedrich
parent 61ca24ab8a
commit 911863f974
2 changed files with 4 additions and 4 deletions

View File

@ -2402,8 +2402,8 @@ snmp_password | **Required.** SNMP version 3 password. No value define
snmp_v3_use_privpass | **Optional.** Define to use SNMP version 3 priv password. Defaults to "false".
snmp_authprotocol | **Optional.** SNMP version 3 authentication protocol. Defaults to "md5,des".
snmp_privpass | **Required.** SNMP version 3 priv password. No value defined as default.
snmp_warn | **Optional.** The warning threshold.
snmp_crit | **Optional.** The critical threshold.
snmp_warn | **Optional.** The warning threshold. Change the `snmp_load_type` var to "netsl" for using 3 values.
snmp_crit | **Optional.** The critical threshold. Change the `snmp_load_type` var to "netsl" for using 3 values.
snmp_load_type | **Optional.** Load type. Defaults to "stand". Check all available types int the [snmp load](http://nagios.manubulon.com/snmp_load.html) documentation.
snmp_perf | **Optional.** Enable perfdata values. Defaults to "true".

View File

@ -85,8 +85,8 @@ object CheckCommand "snmp-load" {
}
vars.snmp_load_type = "stand"
vars.snmp_warn = "4,3,3"
vars.snmp_crit = "8,5,5"
vars.snmp_warn = "85"
vars.snmp_crit = "95"
vars.snmp_perf = true
}