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

Invoke-IcingaCheckUsedPartitionSpace -CheckUsedSpace: negative value #426

Open
tectumopticum opened this issue Nov 26, 2024 · 0 comments
Open

Comments

@tectumopticum
Copy link

If WMI-data is wrong for a volume/device/drive the plugin probably reports negative value for used space:

Invoke-IcingaCheckUsedPartitionSpace -CheckUsedSpace -SkipUnknown -Exclude 'C'
[OK] Used Partition Space: 5 Ok
| 'k::ifw_partitionspace::used'=-50476310000B;;;0;2147346000000
0

Reason for this are wrong values of the WMI-object:
Get-WmiObject Win32_LogicalDisk
DeviceID : K:
DriveType : 3
ProviderName :
FreeSpace : 2197822521344
Size : 2147346206720
VolumeName : data

=> value for "FreeSpace" higher than value for "Size"!

In order to avoid false alarms it would be an idea to compare "Size" and "FreeSpace" and/or check if the output is negative and send an UNKNOWN-event.

OS: Windows 2016 Server Standard
IfW-framework: 1.12.3
IfW-plugins: 1.12.0

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