nobody43 / zabbix-smartmontools

Disk SMART monitoring for Linux, FreeBSD and Windows. LLD, trapper.
The Unlicense
54 stars 19 forks source link

what to do when a drive disappears (changes) #55

Open bschwand opened 2 months ago

bschwand commented 2 months ago

Describe the problem I am not sure what should be done when a drive disappears. For example, if a drive is pulled, zabbix will continue warning about the drive not being responsive.

What is the proper way to disable or remove that drive from the discovered items, without preventing zabbix from re-discovering if a drive is inserted again and appears in the system at the same device node ? I guess that is more of a zabbix question but maybe there is something specific for smartmontools ?

To Reproduce Pull a drive out and see what happens :-)

Expected behavior The notifications disappear once we know the drive device disappearance is normal.

Screenshots If applicable, add screenshots to help explain your problem.

Provide all outputs described in Testing step Serial numbers should be replaced with X_SERIAL_X.

Please complete the following information:

Additional context Add any other context about the problem here.

nobody43 commented 2 months ago

I haven't designed a nice way for decommissioning drives - the situation is too complicated. Currently, if drive turns non-discoverable (purposely disconnected), I acknowledge the problem in web interface (you could enable manual close in the template), and wait for five days for problems to disappear completely (LLD TTL - all items for the disk will be cleared).