Monitoring Windows Disks

Hello guys,

I have this warning in my icinga2 daemon -C command:

[2026-05-29 09:54:40 +0200] warning/Checkable: CheckCommand ‘disk-windows’ used by ‘lt-xyz.whberlin.local!check disk plugin test’ (in /var/lib/icinga2/api/packages/director/b02b9e6c-d407-49ea-941b-49652dfef13d/zones.d/icinga2host/services.conf: 17:1-17:39) is DEPRECATED and will be removed in v2.18. Further uses of this check command won’t be logged.

I have IcingaForWindows plugins installed in my monitoring environment. I want to use the recent plugins which are not deprecated.

I checked it and the Invoke-IcingaCheckDiskHealth instead of check_disk checks different parameters.

I also tried to use Invoke-IcingaCheckPartitionSpace but I don’t really get what I do have to set as critical and warning values as example.

Could you please give me a hint what is the recent equivalent to disk-windows?

Thank you for your help.

Best regards,

Fabian

Best Regards
Nicolas

Hello Nicolas,

Thank you for your reply. I tried to use it but could you probably give me an additional hint what would be good values as “warning” and “critical” tresholds? I tried 80% for warning and 90% for critical first. Afterwards I tried 20% for warning and 10% for critical.

This is the output I get with 80% and 90% levels:

Free Partition Space: 1 Unknown 2 Critical 3 Ok Partition E: Partition \\?\Volume{690a57be-c493-4e8c-9be1-cf6ea7c28b66}\, Partition D:
\_ Partition \\?\Volume{690a57be-c493-4e8c-9be1-cf6ea7c28b66}\: Value 1.04GiB (99,​23%) is greater than threshold 967.50MiB (90%)
\_ Partition D: Value 29.23GiB (99,​77%) is greater than threshold 26.37GiB (90%)

This is the output I get with 20% warning and 10% critical levels:

Free Partition Space: 6 Unknown Partition \\?\Volume{18b6357c-2ea7-4d71-aedc-819adcee8fc1}\, Partition \\?\Volume{4fb31bde-536e-4cea-91a5-fe6a3b00df29}\, Partition \\?\Volume{690a57be-c493-4e8c-9be1-cf6ea7c28b66}\, Partition C:, Partition D:, Partition E:
\_ Partition \\?\Volume{18b6357c-2ea7-4d71-aedc-819adcee8fc1}\: Warning threshold range “204472400” is greater than Critical threshold range “102236200”
\_ Partition \\?\Volume{4fb31bde-536e-4cea-91a5-fe6a3b00df29}\: Warning threshold range “54525960” is greater than Critical threshold range “27262980”
\_ Partition \\?\Volume{690a57be-c493-4e8c-9be1-cf6ea7c28b66}\: Warning threshold range “225443800” is greater than Critical threshold range “112721900”
\_ Partition C: Warning threshold range “95866480000” is greater than Critical threshold range “47933240000”
\_ Partition D: Warning threshold range “6291456000” is greater than Critical threshold range “3145728000”

Can I work with percentages here?

Thank you.

Which version of the powershell plugins/ framework do you use?
Can you please format your posts. Guidelines - Icinga Community

You also need to consider that this are nagios style thresholds
10% means everything is bad that is outside of 0-10% which works for disk used but not for disk free

For disk free you most likely need 10%: which means everything <10% will alert

Thank you so much.

Do you mean if there is some computer data that I just copy them into a quote like this?

Output?

Thank you for your help. It helped me a lot.

Yes and also keep in mind that some chars have formating functionality **strong text** is evaluated to strong text in this forum

Here are the Guidelines - Icinga Community.

there also was a getting started tutorial.

Best Regards
Nicolas