From: sah Date: Thu, 21 Dec 2017 09:48:34 +0000 (+0100) Subject: Add parameter --octetlength to snmp-storage command. X-Git-Tag: v2.9.0~244^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F5902%2Fhead;p=icinga2 Add parameter --octetlength to snmp-storage command. --- diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index ba04e326a..15db7e2e5 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -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_perf | **Optional.** Enable perfdata values. Defaults to true. 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 diff --git a/itl/command-plugins-manubulon.conf b/itl/command-plugins-manubulon.conf index d1e2abe3c..1356bc913 100644 --- a/itl/command-plugins-manubulon.conf +++ b/itl/command-plugins-manubulon.conf @@ -201,6 +201,10 @@ object CheckCommand "snmp-storage" { set_if = "$snmp_perf$" 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 = "^/$$" @@ -384,4 +388,4 @@ object CheckCommand "snmp-service" { } vars.snmp_service_name = ".*" -} \ No newline at end of file +}