Commit Graph

15 Commits

Author SHA1 Message Date
Daniel Berteaud cfdd92b9c6 Fix zpool iostat as /proc/spl/kstat/zfs/pool/io doesn't exist anymore 2021-12-16 16:46:43 +01:00
Daniel Berteaud c1f20d9388 Fix zfs pool monitoring when a pool has errors
We must drop stderr so messages like permissions error getting errors do
not pollute the JSON output
2021-02-17 10:30:59 +01:00
Daniel Berteaud 21fcd4949e Enhance ZFS monitoring scripts to retrieve ARC stats 2019-10-11 11:41:05 +02:00
Daniel Berteaud b5315cea86 Check $sanoidmon is defined before checking its value 2019-09-21 16:33:28 +02:00
Daniel Berteaud dc8bef75ed Better sanoïd monitoring integration 2019-09-21 16:10:40 +02:00
Daniel Berteaud 2a0c6b2ad9 Remove trailing x for compressratio with ZoL < 0.8 2019-09-20 12:54:01 +02:00
Daniel Berteaud ad7c36b6de Revert to suffix conversion for ZFS error count
zpool status -p is only supported since ZoL 0.8.0, so, to monitor older servers, we need to do this without -p
2019-09-20 12:39:51 +02:00
Daniel Berteaud f58df33f3b Rewrite ZFS monitoring from scratch
Now support discovery of datasets, a lot more metrics and sanoid snapshots
2019-09-20 10:39:07 +02:00
Daniel Berteaud d782fc24ab Fix ZBX_NOTSUPPORTED string in several scripts 2018-12-09 11:49:09 +01:00
Daniel Berteaud 7d27a931f3 Fix ZFS pool stats retrieval 2018-07-04 08:11:39 +02:00
Daniel Berteaud 662d48584e Add stats for ZFS zpools 2018-05-30 17:07:20 +02:00
Daniel Berteaud e72efa4415 Ensure we always return a value for scan action status errors in check_zfs 2018-05-29 12:38:25 +02:00
Daniel Berteaud 420bb936b3 Handle situations where there's more than 1000 errors on a item in ZFS pools 2018-05-29 12:20:07 +02:00
Daniel Berteaud 65e1f006a7 Various enhancements in check_zfs 2018-05-29 12:03:25 +02:00
Daniel Berteaud d7f456d2ea Add scripts to discover and check ZFS zpools 2018-05-28 17:26:57 +02:00