Commit Graph

169 Commits

Author SHA1 Message Date
Andreas Perhab 06c8186bd7 nvme: use non-capturing group for 0x
fixes issues on systems where namespace is not yet prefixed by 0x
2024-04-24 12:49:37 +02:00
Andreas Perhab 2eab6784c0 nvme: fix handling namespaces prefixed with 0x 2024-04-09 11:26:51 +02:00
Andreas Perhab 698cf1e2fb nvme: fix for nvme-cli > 2 2023-06-28 14:59:27 +02:00
Simon Josefsson 5627c096fc
nvme: Prefix 'NVME' to spare graph title for consistency. 2023-06-25 10:26:56 +02:00
Kenyon Ralph 38f2647dd0
Merge pull request #1372 from trollagit/trollagit-patch-1
Update md_iostat_ for '--write-mostly' drives
2023-05-03 12:29:58 -07:00
trollagit ba6595ff2b
Update md_iostat_ for '--write-mostly' drives
Doesn't work with '--write-mostly' drives like sde1 in : 
     md94 : active raid1 sde1[1](W)(S) sdd1[2]
I assume to remove everything behind the opening bracket
2023-05-03 16:59:45 +02:00
Kim B. Heino b52691ad66 disk/storagebox_df: monitor Hetzner Storagebox disk free
This plugin is similar to df plugin, but monitors Storagebox disk instead.
It requires config and ssh keys to access Storagebox.
2023-03-07 11:08:37 +02:00
Kim B. Heino 26bcef2f21 disk/stratis: add support for stratis v3.4 output 2023-02-24 14:55:16 -08:00
Kim B. Heino eea45ab34b raid2: add support for LSI MPT Fusion SAS 3.0 RAID 2023-01-13 21:59:50 -08:00
Kim B. Heino 57ae10a6e4 zram: fix df to be percents 2023-01-13 21:50:17 -08:00
Kim B. Heino e23f2af4b0 disk/zram: new plugin to monitor zram devices 2023-01-13 21:50:17 -08:00
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