icinga-powershell-framework icon indicating copy to clipboard operation
icinga-powershell-framework copied to clipboard

Check disk/partition availability

Open afeefghannam89 opened this issue 9 months ago • 1 comments

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.

afeefghannam89 avatar Mar 05 '25 09:03 afeefghannam89

ref/NC/847453 ref/NC/847440

afeefghannam89 avatar Mar 05 '25 09:03 afeefghannam89