Historique | Voir | Annoter | Télécharger (5,69 ko)
[btrfs_device_usage] fix division by zero when btrfs pool is unhealthy
During certain situations, a device in the btrfs pool can show a totalcapacity of 0 bytes. This is aspecially true when replacing or removing afailed disk.
This fix stops the plugin from crashing in that situation but just report...
Try to please linter with whitespaces arround equals.This does not seam logical, because it explicitly want's spaces arround equal signs when setting a variable, but you musn't use them in parameters. But well, whatever makes the linter happy.
Change if conditions to please the linter.
Fix whitespaces to please the linter.
[btrfs_device_usage] Document usage of optional warning and critical limits.
[btrfs_device_usage] Allow for configuring optional limits for warning and critical.These are configurable as a global and individual value.
Improve documantion of many plugins
Specifically the configuration examples are now indented properly.
Touchups on configuration.
Add perldoc-style header.
Fix linting issues.
[plugins/disk/btrfs_device_usage] Reformat linebreaks.
Following suggestions from linting.
[plugins/disk/btrfs_device_usage] Fix issues brought up by CI.
- Remove trailing whitespace.- Add whitespace around operators.- Add linebreaks to shorten the lines.
[plugins/disk/btrfs_device_usage] Add plugin to monitor btrfs usage on a device level.
Shows the used size of each device in a btrfs pool in bytes and percent.