From d858b9741a730e830f111f21fc1c7df5763cef47 Mon Sep 17 00:00:00 2001 From: sah Date: Thu, 21 Dec 2017 10:48:34 +0100 Subject: [PATCH] Add parameter --octetlength to snmp-storage command. --- doc/10-icinga-template-library.md | 1 + itl/command-plugins-manubulon.conf | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 +} -- 2.49.0