]> granicus.if.org Git - icinga2/commitdiff
Add parameter --octetlength to snmp-storage command. 5902/head
authorsah <sah@mss.secunet.com>
Thu, 21 Dec 2017 09:48:34 +0000 (10:48 +0100)
committersahnd <webmaster@ahndorf.de>
Wed, 27 Dec 2017 18:39:19 +0000 (19:39 +0100)
doc/10-icinga-template-library.md
itl/command-plugins-manubulon.conf

index ba04e326a46bf40327e7820b7acefe14e92e543c..15db7e2e5f20222a0382b8b61cc5905289dff275 100644 (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_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 <a id="plugin-check-command-snmp-interface"></a>
 
index d1e2abe3c8923d81d868960e3876cac005fabf6f..1356bc913627d584517a4edefb569f6825ee159b 100644 (file)
@@ -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
+}