1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00
Commit graph

13 commits

Author SHA1 Message Date
HaseHarald
16d38264aa [btrfs_device_usage] fix division by zero when btrfs pool is unhealthy
During certain situations, a device in the btrfs pool can show a total
capacity of 0 bytes. This is aspecially true when replacing or removing a
failed disk.

This fix stops the plugin from crashing in that situation but just report
the devices percentage as unknown (U). That way other devices in the pool
stil can be monitored.
2021-12-12 13:20:43 +01:00
HaseHarald
50265ccea9 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.
2021-07-14 21:41:02 +02:00
HaseHarald
409e88968d Change if conditions to please the linter. 2021-07-14 21:41:01 +02:00
HaseHarald
76c21fe7ef Fix whitespaces to please the linter. 2021-07-14 21:41:01 +02:00
HaseHarald
e169950da6 [btrfs_device_usage] Document usage of optional warning and critical limits. 2021-07-14 21:41:01 +02:00
HaseHarald
68190a6d1c [btrfs_device_usage] Allow for configuring optional limits for warning and critical.
These are configurable as a global and individual value.
2021-07-14 21:41:01 +02:00
Lars Kruse
09b88141b3 Improve documantion of many plugins
Specifically the configuration examples are now indented properly.
2020-10-24 17:29:08 +02:00
HaseHarald
3f92394b23 Touchups on configuration. 2020-08-25 22:01:19 +02:00
HaseHarald
6f0e91f850 Add perldoc-style header. 2020-08-25 20:21:19 +02:00
HaseHarald
bffbc23a4e Fix linting issues. 2020-08-24 21:37:29 +02:00
HaseHarald
675dedf1d4 [plugins/disk/btrfs_device_usage] Reformat linebreaks.
Following suggestions from linting.
2020-08-23 18:17:21 +02:00
HaseHarald
7d220d0ae6 [plugins/disk/btrfs_device_usage] Fix issues brought up by CI.
- Remove trailing whitespace.
- Add whitespace around operators.
- Add linebreaks to shorten the lines.
2020-08-23 17:45:08 +02:00
HaseHarald
10f2d97ffe [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.
2020-08-23 16:38:38 +02:00