Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check disk/partition availability #793

Open
afeefghannam89 opened this issue Mar 5, 2025 · 1 comment
Open

Check disk/partition availability #793

afeefghannam89 opened this issue Mar 5, 2025 · 1 comment

Comments

@afeefghannam89
Copy link
Member

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
Copy link
Member Author

ref/NC/847453
ref/NC/847440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant