it appears that this is coded, but not working properly:
root@CMOOSCHSTUP7305:/etc/cron.d# cat /var/lib/nagios/mdadm.out OK: /dev/md1 ok
root@CMOOSCHSTUP7305:/etc/cron.d# mdadm --detail /dev/md1 /dev/md1: Version : 1.2 Creation Time : Thu Oct 18 17:41:01 2018 Raid Level : raid10 Array Size : 7812235264 (7450.33 GiB 7999.73 GB) Used Dev Size : 3906117632 (3725.16 GiB 3999.86 GB) Raid Devices : 4 Total Devices : 4 Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Mon Oct 28 18:46:34 2019 State : active, degraded, recovering Active Devices : 3 Working Devices : 4 Failed Devices : 0 Spare Devices : 1
Layout : near=2 Chunk Size : 512K
Rebuild Status : 13% complete
Name : CMOOSCHSTUP7305:1 (local to host CMOOSCHSTUP7305) UUID : fed3a645:1f742fd3:1685dda5:71794407 Events : 750593
Number Major Minor RaidDevice State 0 8 98 0 active sync set-A /dev/sdg2 1 8 114 1 active sync set-B /dev/sdh2 2 8 146 2 active sync set-A /dev/sdj2 4 8 162 3 spare rebuilding /dev/sdk2
This should show Critical/degraded.
it appears that this is coded, but not working properly:
root@CMOOSCHSTU P7305:/ etc/cron. d# cat /var/lib/ nagios/ mdadm.out
OK: /dev/md1 ok
root@CMOOSCHSTU P7305:/ etc/cron. d# mdadm --detail /dev/md1
/dev/md1:
Version : 1.2
Creation Time : Thu Oct 18 17:41:01 2018
Raid Level : raid10
Array Size : 7812235264 (7450.33 GiB 7999.73 GB)
Used Dev Size : 3906117632 (3725.16 GiB 3999.86 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Mon Oct 28 18:46:34 2019
State : active, degraded, recovering
Active Devices : 3
Working Devices : 4
Failed Devices : 0
Spare Devices : 1
Layout : near=2
Chunk Size : 512K
Rebuild Status : 13% complete
Name : CMOOSCHSTUP7305:1 (local to host CMOOSCHSTUP7305) 1f742fd3: 1685dda5: 71794407
UUID : fed3a645:
Events : 750593
Number Major Minor RaidDevice State
0 8 98 0 active sync set-A /dev/sdg2
1 8 114 1 active sync set-B /dev/sdh2
2 8 146 2 active sync set-A /dev/sdj2
4 8 162 3 spare rebuilding /dev/sdk2
This should show Critical/degraded.