Linuxfabrik / monitoring-plugins

220+ check plugins for Icinga and other Nagios-compatible monitoring applications. Each plugin is a standalone command line tool (written in Python) that provides a specific type of check.
https://linuxfabrik.ch
The Unlicense
220 stars 51 forks source link

disk-usage: Make plugin output more generic #664

Closed log1-c closed 1 year ago

log1-c commented 1 year ago

Describe the solution you'd like

I'd like to propose a change to the way the plugin displays its output. Currently the check display the first disk found as the short message: image

In the current state of the check where it checks all disks at once I find that a bit misleading, so that one could think that there is an issue with this disk. I would like it if the plugin displays a more generic message like "All disks below thresholds" or something similar and show the table in the extended output message.

As I have also just seen the FR for checking a single mountpoint (https://github.com/Linuxfabrik/monitoring-plugins/issues/662), the current check output would fit that scenario. Checking a single mount point and then display said mountpoints statistics in the short message without any additional table.

Additional context

No response

markuslf commented 1 year ago

Yes, perfectly related to https://github.com/Linuxfabrik/monitoring-plugins/issues/662.