SnejPro / check_synology

Icinga2 script for Synology Diskstation
0 stars 3 forks source link

Hotspare Disks are not correctly detected and checked #21

Open Beleggrodion opened 11 months ago

Beleggrodion commented 11 months ago

Hi,

I found a little issue that the disk check can't detect "hot spare drives" . They had status "Initialized" and this triggers a warning.

Script Output:

NAS-Status: WARNING

Disks:
Disk 0 - Name: Disk 1 
Disk 0 - Status: Normal  - OK
Disk 0 - Model: ST3000VN007-2E4166 
Disk 0 - Temperature: 31.0 C - OK
Disk 1 - Name: Disk 2 
Disk 1 - Status: Normal  - OK
Disk 1 - Model: ST3000VN007-2E4166 
Disk 1 - Temperature: 32.0 C - OK
Disk 2 - Name: Disk 3 
Disk 2 - Status: Initialized  - WARNING
Disk 2 - Model: ST3000VN007-2E4166 
Disk 2 - Temperature: 31.0 C - OK

And here a screenshot from the storage manager. screen is in german but i think the important stuff is still identifiable.

grafik

Greetings

SnejPro commented 11 months ago

Hi,

I found a little issue that the disk check can't detect "hot spare drives" . They had status "Initialized" and this triggers a warning.

Script Output:

NAS-Status: WARNING

Disks:
Disk 0 - Name: Disk 1 
Disk 0 - Status: Normal  - OK
Disk 0 - Model: ST3000VN007-2E4166 
Disk 0 - Temperature: 31.0 C - OK
Disk 1 - Name: Disk 2 
Disk 1 - Status: Normal  - OK
Disk 1 - Model: ST3000VN007-2E4166 
Disk 1 - Temperature: 32.0 C - OK
Disk 2 - Name: Disk 3 
Disk 2 - Status: Initialized  - WARNING
Disk 2 - Model: ST3000VN007-2E4166 
Disk 2 - Temperature: 31.0 C - OK

And here a screenshot from the storage manager. screen is in german but i think the important stuff is still identifiable.

grafik

Greetings

Hi Beleggrodion,

try this version and let me know if the issue is gone, please. https://github.com/SnejPro/check_synology/blob/dev/check_synology.py

I changed the state of initalized drives to "OK". Do you think this could cause problems for other users?

Greetings Jens

Beleggrodion commented 11 months ago

I will try it.

I changed the state of initalized drives to "OK". Do you think this could cause problems for other users?

I don't know. Because i'm not sure when the synology uses "Initialized" for their disks. Perhaps also when a complety new nas is started for the first time and no raid, etc. exists but in this case the most people don't setup directly the monitoring of their synology nas.

Greetings