Icinga / Icinga/icinga-powershell-framework

Check disk/partition availability

Open
#793 1 comment 0 reactions 1 assignee View on GitHub

@LordHepipud is already working on this.

Since Mar 27, 2025.

Enhancement
Dominant language
PowerShell
Stars
87
Forks
34
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.