mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6745 from markleary/master
Add support for -q argument to Manubulon snmp-storage commmand
This commit is contained in:
commit
ec169de5c4
|
@ -2067,6 +2067,7 @@ snmp_privpass | **Required.** SNMP version 3 priv password. No value d
|
||||||
snmp_warn | **Optional.** The warning threshold.
|
snmp_warn | **Optional.** The warning threshold.
|
||||||
snmp_crit | **Optional.** The critical threshold.
|
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_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_perf | **Optional.** Enable perfdata values. Defaults to true.
|
||||||
snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 5 seconds.
|
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_storage_olength | **Optional.** Max-size of the SNMP message, usefull in case of Too Long responses.
|
||||||
|
|
|
@ -215,6 +215,10 @@ object CheckCommand "snmp-storage" {
|
||||||
value = "$snmp_storage_olength$"
|
value = "$snmp_storage_olength$"
|
||||||
description = "Max-size of the SNMP message, usefull in case of Too Long responses."
|
description = "Max-size of the SNMP message, usefull in case of Too Long responses."
|
||||||
}
|
}
|
||||||
|
"-q" = {
|
||||||
|
value = "$snmp_storage_type$"
|
||||||
|
description = "Storage type: Other, Ram, VirtualMemory, FixedDisk, RemovableDisk, FloppyDisk, CompactDisk, RamDisk, FlashMemory, or NetworkDisk"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vars.snmp_storage_name = "^/$$"
|
vars.snmp_storage_name = "^/$$"
|
||||||
|
|
Loading…
Reference in New Issue