Merge pull request #5902 from sahnd/feature/itl-snmp-storage-responsesize

Add parameter --octetlength to snmp-storage command.
This commit is contained in:
Markus Frosch 2018-01-05 17:05:28 +01:00 committed by GitHub
commit 59cf84db54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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_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>

View 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 = ".*"
}
}