Array Health Report Status Email Format


Recommended Posts

I've been adding more and more drives to my system.  Today I received the below status message and it stated [FAIL], but I had to search the list three or four times to find NOK.  I'd like to make a suggestion for improvement of this email.  Where would be the appropriate place for that? 

 

Did a search for suggestions, but didn't find anything.  I'd like to suggest a simple carriage return be placed after each disk report.  Also, putting the [OK] or [NOK] or [WHATEVER OTHER STATUS] at the beginning would make it easy to scan and find the offending drive.  Something like this...

 

Event: Unraid Status
Subject: Notice [HUNTERNAS] - array health report [FAIL]
Description: Array has 14 disks (including parity & cache)
Importance: warning

[OK] - Parity - HGST_HUS726060ALA640_AR11021EHJAHKB (sdc) - active 39 C
[OK] - Parity2 - HGST_HUS726060ALA640_AR31021EHUX5HC (sdd) - active 42 C 
[OK] - Disk 1 - ST4000DM000-1F2168_W30086L5 (sdm) - active 42 C
[OK] - Disk 2 - Hitachi_HDS5C3020ALA632_ML0220F31HKTDN (sde) - standby
[OK] - Disk 3 - HGST_HUS726060ALA640_AR11001EV14M3B (sdf) - active 40 C
[OK] - Disk 4 - Hitachi_HDS5C3020ALA632_ML0220F30MWAYD (sdg) - active 40 C
[OK] - Disk 5 - HGST_HUS726060ALA640_AR31051EJSYX2J (sdh) - active 42 C
[OK] - Disk 6 - Hitachi_HUA723030ALA640_MK0371YVG9PYUA (sdk) - active 46 C
[OK] - Disk 7 - Hitachi_HDS5C3020ALA632_ML0220F30YS4XD (sdl) - standby
[OK] - Disk 8 - Hitachi_HUA723030ALA640_MK0373YVHH0A4C (sdi) - active 46 C
[NOK] - Disk 9 - Hitachi_HUA723030ALA640_MK0361YHJ0N8JD (sdj) - active 48 C (disk is hot)
[OK] - Disk 10 - Hitachi_HDS5C3020ALA632_ML0220F311GHND (sdo) - standby
[OK] - Disk 11 - HGST_HUS726060ALA640_AR31051EJU87UJ (sdn) - active 42 C
[OK] - Cache - Samsung_SSD_850_EVO_500GB_S2RANX0H811137T (sdb) - active 34 C

Parity check in progress.
Total size: 6 TB
Elapsed time: 7 hours, 5 minutes
Current position: 2.48 TB (41.4 %)
Estimated speed: 100.0 MB/sec
Estimated finish: 9 hours, 46 minutes
Sync errors detected: 0

Much easier to read than this...

 

Event: Unraid Status
Subject: Notice [HUNTERNAS] - array health report [FAIL]
Description: Array has 14 disks (including parity & cache)
Importance: warning

Parity - HGST_HUS726060ALA640_AR11021EHJAHKB (sdc) - active 39 C [OK]
Parity2 - HGST_HUS726060ALA640_AR31021EHUX5HC (sdd) - active 42 C [OK] Disk 1 - ST4000DM000-1F2168_W30086L5 (sdm) - active 42 C [OK] Disk 2 - Hitachi_HDS5C3020ALA632_ML0220F31HKTDN (sde) - standby [OK] Disk 3 - HGST_HUS726060ALA640_AR11001EV14M3B (sdf) - active 40 C [OK] Disk 4 - Hitachi_HDS5C3020ALA632_ML0220F30MWAYD (sdg) - active 40 C [OK] Disk 5 - HGST_HUS726060ALA640_AR31051EJSYX2J (sdh) - active 42 C [OK] Disk 6 - Hitachi_HUA723030ALA640_MK0371YVG9PYUA (sdk) - active 46 C [OK] Disk 7 - Hitachi_HDS5C3020ALA632_ML0220F30YS4XD (sdl) - standby [OK] Disk 8 - Hitachi_HUA723030ALA640_MK0373YVHH0A4C (sdi) - active 46 C [OK] Disk 9 - Hitachi_HUA723030ALA640_MK0361YHJ0N8JD (sdj) - active 48 C (disk is hot) [NOK] Disk 10 - Hitachi_HDS5C3020ALA632_ML0220F311GHND (sdo) - standby [OK] Disk 11 - HGST_HUS726060ALA640_AR31051EJU87UJ (sdn) - active 42 C [OK] Cache - Samsung_SSD_850_EVO_500GB_S2RANX0H811137T (sdb) - active 34 C [OK]

Parity check in progress.
Total size: 6 TB
Elapsed time: 7 hours, 5 minutes
Current position: 2.48 TB (41.4 %)
Estimated speed: 100.0 MB/sec
Estimated finish: 9 hours, 46 minutes
Sync errors detected: 0

Thanks!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.