Ad Widget

Collapse

Detection of failed disks in the Storage Spaces Direct cluster

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lutz
    Junior Member
    • Apr 2022
    • 2

    #1

    Detection of failed disks in the Storage Spaces Direct cluster

    Hello community,
    After almost 10 years of Zabbix I have the first problem that I've been chewing around for a while without success - maybe you can help me.

    We use a Microsoft Storage Spaces Direct Cluster of 4 hosts. The installed Windows manages the disks by itself, so there is no RAID Controller managing the drives
    This means, that the Server iDrac does not recognize a failed disk - so polling the iDrac vi SNMP does not do the job in this case.

    In order to find out whether and which disks are defective, a powershell command must be issued from Windows, which does not produce any output on the command line, if no disks are defective.
    If (at least) one disk is defective, the type designation and serial number of the defective disk(s) are output. It looks like this:

    PS C:\Scripts> .\HealthStatus_Disks.ps1
    MZ7LM3T8HMLP0D3 S37MNX0J6XXXXX


    The first string is the type designation of the disk and the second is its serial number.​
    I know how to use the "UserParameter"-Option in zabbix_agentd.conf to run this powershell script. A test on the zabbix server using the zabbix_get command does work.


    However, it is not clear to me how I can create an item and a trigger, that will show a problem containing the type and serial number of any defective disk found.
    Does anyone here have a helpful idea? Many thanks in advance! :-)​
    Last edited by Lutz; 20-06-2023, 21:51.
Working...