1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00
Commit graph

158 commits

Author SHA1 Message Date
Andreas Perhab
8dcc914938 du-2: fix resource consumption when first running the plugin
when installing / first running the plugin, it can take longer than
one munin-update call to create the $TIMEFILE. so until it is created
we assume the $LOCKFILE is not too old yet and let the first run finish
before we spawn additional processes.
2022-06-01 13:29:53 +02:00
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
Andreas Perhab
6408924066 nvme: enable specifying warnings and criticals for serial numbers 2021-10-13 12:34:44 +02:00
Kim B. Heino
9f1f96f656 raid2: fix "raid -> raid2" in perlpod 2021-07-14 22:30:32 +02:00
Kim B. Heino
558360c412 raid2: use perlpod and small fixes 2021-07-14 22:30:32 +02:00
Kim B. Heino
d3bcc2f9bf raid2: yet another raid+scrub monitoring plugin
Supports:
- mdstat
- btrfs
- cciss
- megasasctl
2021-07-14 22:30:32 +02:00
HaseHarald
8a2c0be5b2 [btrfs_device_stats] Make warning and critical configurable for all metrics per device. 2021-07-14 21:41:02 +02:00
HaseHarald
d45c84e59f Missed one parameters equals with whitespaces. 2021-07-14 21:41:02 +02:00
HaseHarald
cbd9235623 Fix indention to please linter. 2021-07-14 21:41:02 +02: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
HaseHarald
17298912b4 [btrfs_device_stats] Document usage of optional warning and critical limits. 2021-07-14 21:41:01 +02:00
HaseHarald
0d8f830934 [btrfs_device_stats] Allow for configuring optional critical limits as a global and individual value. 2021-07-14 21:41:01 +02:00
HaseHarald
d10c11989b [btrfs_device_stats] Allow for configuring warning values as a global and individual value. 2021-07-14 21:41:01 +02:00
Lars Kruse
2c9121708a Fix some spelling mistakes
Thanks, codespell!
2021-04-05 23:24:50 +02:00
HaseHarald
a1e346bcb7 Fix warning on btrfs_device_stats.
It's always those typos!
2021-04-05 23:05:44 +02:00
Lars Kruse
da87fcd6c7 Fix spelling issues 2021-03-31 20:39:12 +02:00
Florian Sager
842acaef1a Prevent escaping of internal names with leading numbers to fix graph processing
With serials like

Node             SN                   Model                                    Namespace Usage                      Format           FW Rev  
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1     285S100HTYST         KXG50ZNV512G TOSHIBA                     1         512,11  GB / 512,11  GB    512   B +  0 B   AAGA4106
/dev/nvme1n1     S4GENX0N713949       SAMSUNG MZVLB512HBJQ-00000               1         474,89  GB / 512,11  GB    512   B +  0 B   EXF7201Q

the internal names (by serial number) were rewritten to

Field 	Internal name 	Type 	Warn 	Crit 	Info
/dev/nvme0n1 	_85S100HTYST_w 	derive 	  	  	 
/dev/nvme1n1 	S4GENX0N713949_w 	derive

--> the trailing underscore in case of nvme0n1 created problems in graph processing:

[RRD ERROR] Unable to graph /var/cache/munin/www/lxdserver/....agitos.de/nvme_bytes-month.png : undefined vname c285S100HTYST_r

Therefore I added a prefix 'SN_' for internal names.
2021-03-18 14:25:23 +01:00
Kjetil Torgrim Homme
c7299aeba2 nvme: add graph for spare capacity. add support for limits
The default limits are sort of randomly chosen.  My nvme drives report
a warning level at 10% spare capacity, so I kept that here.
2021-03-14 16:02:24 +01:00
Steve Schnepp
0d13497ed8
Merge pull request #1174 from steveschnepp/plugin/smart_
Adding a new C plugin : smart_
2021-02-07 12:27:56 +01:00
Steve Schnepp
b86f1d0ffe smart_: port to openbsd & macos 2021-02-07 12:19:39 +01:00
Steve Schnepp
6eff786eef smart: importing common.{h,c} from munin-c
The compilation is very easy, a simple `make` should work, as I provided
a convenient `Makefile`
2021-02-07 12:17:14 +01:00
Steve Schnepp
a420c4eb58 smart_: renaming the file
The destination file is a wildcard one. Therefore the C file should be
named with a trailing `_`.
2021-02-07 12:15:07 +01:00
Bastiaan van Kesteren
2fd3eec87c Hacked together a smart_ plugin in C
There is some trickery going on to not wakeup the disk when it's in standby

Note: this was aimed at munin-c, but was rejected since it uses a
subprocess that calls the `smartctl` tool.
2021-02-07 12:03:41 +01:00
Andreas Perhab
82644213e3 during DELAYED/PENDING resyncs mark reshape/recovery percent as unknown instead of 0 2021-01-29 16:22:34 +01:00
Kim B. Heino
a45257a64a stratis: code cleanup and use perlpod format for documentation 2021-01-10 17:47:54 +01:00
Kim B. Heino
7d31b4ce25 stratis: new plugin to monitor stratis filesystem 2021-01-10 17:47:54 +01:00
Samuel Smith
f90427c32a Update for extra fields in newer kernels
The fields have changed from 11 or 15 on recent kernels but does not effect what the plugin gathers. 
See 5.4 https://www.kernel.org/doc/html/v5.4/block/stat.html versus 4.16 https://mjmwired.net/kernel/Documentation/block/stat.txt
2021-01-08 15:33:58 +01:00
Kjetil Torgrim Homme
6c7ad652b9 silly bug: writecycles must be calculated from *written* bytes
This fixes issue #1127
2020-11-13 22:54:19 +01:00
rantal
14e5261e27 Fix to work with old lsblk version... 2020-10-29 00:00:23 +01:00
Lars Kruse
a7139bcaee Unify shebang for python scripts 2020-10-28 23:38:41 +01: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
Lars Kruse
0ff03ad469 Remove dummy plugins containing only references to external repositories 2020-09-23 05:06:01 +02:00
Lars Kruse
bd872f7af1 btrfs_*_usage: add example graphs
Provided by HaseHarald.
See https://github.com/munin-monitoring/contrib/pull/1114.
2020-08-26 03:24:37 +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
f12bfed795 [plugins/disk/btrfs_device_stats] Remove unused variable. 2020-08-23 18:15:40 +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
5f88f9ad06 Fix issues brought up by CI.
- Remove trailing whitespace
- Remove unused variable.
2020-08-23 17:34:21 +02:00
HaseHarald
7bf77a008d [plugins/disk/btrfs_device_stats] Add a plugin to monitor device stats from btrfs.
Monitors the different device-counters (mostly for errors) of the disks in a btrfs pool.
2020-08-23 16:43:21 +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
zivillian
ca2484b357 extend workaround for multiple dashes 2020-08-14 01:11:08 +02:00
zivillian
58e371308a extend workaround for multiple dashes 2020-08-14 01:11:08 +02:00
Lars Kruse
cdb9a4456f Plugin xfs_frag: fix shellcheck issues 2020-03-26 04:23:21 +01:00
Lars Kruse
8713eb3722 Fix spelling mistakes in comments and descriptions
Thanks, codespell!
2020-03-26 04:23:21 +01:00