Open
Description
We want to use an IFW check to verify whether a drive or disk is accessible on a Windows server.
For this, we have tested the following two commands:
Invoke-IcingaCheckUsedPartitionSpace
Invoke-IcingaCheckDiskHealth
However, both commands return the status UNKNOWN if the path is not found.
With Invoke-IcingaCheckUsedPartitionSpace, it is possible to change the UNKNOWN status to OK.
However, we want the status to be CRITICAL if a disk is no longer available.
Can the functionality of the Invoke-IcingaCheckDiskHealth check be extended to verify the availability of a disk?
The description states that it checks the availability of the disk, but in reality, UNKNOWN is not the expected return value for an availability check.