Add parameter --octetlength to snmp-storage command.

This commit is contained in:
sah 2017-12-21 10:48:34 +01:00 committed by sahnd
parent bff6e39b7d
commit d858b9741a
2 changed files with 6 additions and 1 deletions

View File

@ -2023,6 +2023,7 @@ snmp_crit | **Optional.** The critical threshold.
snmp_storage_name | **Optional.** Storage name. Default to regex "^/$$". More options available in the [snmp storage](http://nagios.manubulon.com/snmp_storage.html) documentation. snmp_storage_name | **Optional.** Storage name. Default to regex "^/$$". More options available in the [snmp storage](http://nagios.manubulon.com/snmp_storage.html) documentation.
snmp_perf | **Optional.** Enable perfdata values. Defaults to true. snmp_perf | **Optional.** Enable perfdata values. Defaults to true.
snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 5 seconds. snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 5 seconds.
snmp_storage_olength | **Optional.** Max-size of the SNMP message, usefull in case of Too Long responses.
### snmp-interface <a id="plugin-check-command-snmp-interface"></a> ### snmp-interface <a id="plugin-check-command-snmp-interface"></a>

View File

@ -201,6 +201,10 @@ object CheckCommand "snmp-storage" {
set_if = "$snmp_perf$" set_if = "$snmp_perf$"
description = "Perfparse compatible output" description = "Perfparse compatible output"
} }
"-o" = {
value = "$snmp_storage_olength$"
description = "Max-size of the SNMP message, usefull in case of Too Long responses."
}
} }
vars.snmp_storage_name = "^/$$" vars.snmp_storage_name = "^/$$"