SteScho / manubulon-snmp

Set of Icinga/Nagios plugins to check hosts and hardware with the SNMP protocol.
GNU General Public License v2.0
73 stars 71 forks source link

Add support for allowing considering OK if no storage found matching given criteria #70

Closed araujorm closed 4 years ago

araujorm commented 4 years ago

This adds a new option (-O or --okifempty) to be able to make the plug-in return OK if the given criteria returns no disks found, instead of the (usually appropriate) UNKNOWN default.

This is useful for cases when you have all your known disks monitored in different checks (e.g. to be able to place different thresholds for each) but you want to ensure that if someone adds a new disk to the system it will still be monitored (so you can now use -O -e -m '(expression|matching|other|known|disks)' for that particular check).

In environments where several parties have access to administering the same system, but you are the one responsible for monitoring it, this can be an important feature to have.