]> granicus.if.org Git - icinga2/commitdiff
Added snmp_exclude option to manubulon snmp-storage check 6890/head
authorMartin Neubert <martin.neubert@t-systems.com>
Fri, 11 Jan 2019 08:54:24 +0000 (09:54 +0100)
committerMartin Neubert <martin.neubert@t-systems.com>
Fri, 11 Jan 2019 08:54:24 +0000 (09:54 +0100)
doc/10-icinga-template-library.md
itl/command-plugins-manubulon.conf

index 4b7f13acc144e3b380d127df9fb6e5b97c7cef53..36ced163e7070ad672c226d626102988f3238500 100644 (file)
@@ -2071,6 +2071,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_type       | **Optional.** Filter by storage type. Valid options are Other, Ram, VirtualMemory, FixedDisk, RemovableDisk, FloppyDisk, CompactDisk, RamDisk, FlashMemory, or NetworkDisk. No value defined as default.
 snmp_perf               | **Optional.** Enable perfdata values. Defaults to true.
+snmp_exclude            | **Optional.** Select all storages except the one(s) selected by -m. No action on storage type selection.
 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.
 
index 39e9cf153c70138b5c81ccfa20abd1c7d40adeb2..18a2ddc2468464b3e7c7199dad618bf0135cff15 100644 (file)
@@ -211,6 +211,10 @@ object CheckCommand "snmp-storage" {
                        set_if = "$snmp_perf$"
                        description = "Perfparse compatible output"
                }
+               "-e" = {
+                       set_if = "$snmp_exclude$"
+                       description = "Select all storages except the one(s) selected by -m. No action on storage type selection."
+               }
                "-o" = {
                        value = "$snmp_storage_olength$"
                        description = "Max-size of the SNMP message, usefull in case of Too Long responses."
@@ -225,6 +229,7 @@ object CheckCommand "snmp-storage" {
        vars.snmp_warn = 80
        vars.snmp_crit = 90
        vars.snmp_perf = true
+       vars.snmp_exclude = false
 }