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-IcingaCheckPartitionSpace Warning threshold range greater than Critical results in UNKNOWN #435

Open
CHOOH1992 opened this issue Nov 26, 2021 · 1 comment · May be fixed by #533
Open
Assignees
Labels
Bug There is an issue present
Milestone

Comments

@CHOOH1992
Copy link

Hi,
just a small thing - the warning level as percentage currently can't be higher then the critical level.

PS C:\Windows\system32> Invoke-IcingaCheckPartitionSpace -Warning 10%: -Critical 5GB:
[UNKNOWN] Free Partition Space: 2 Unknown [UNKNOWN] Partition C: (72.98% (99.40GiB)), Partition D: (37.18% (311.68GiB))
\_ [UNKNOWN] Partition C: Warning threshold range "10% (13.62GiB)" is greater than Critical threshold range "5GB:"
\_ [UNKNOWN] Partition D: Warning threshold range "10% (83.83GiB)" is greater than Critical threshold range "5GB:"
| 'free_space_partition_d'=334660800000B;90014900000:;5000000000:;0;900149000000 'free_space_partition_c'=106731700000B;14625220000:;5000000000:;0;146252200000
3
PS C:\Windows\system32> Invoke-IcingaCheckPartitionSpace -Warning 13GB: -Critical 5GB:
[OK] Free Partition Space: 2 Ok
| 'free_space_partition_d'=334660800000B;13000000000:;5000000000:;0;900149000000 'free_space_partition_c'=106731600000B;13000000000:;5000000000:;0;146252200000
0

Best regards

@LordHepipud
Copy link
Collaborator

Hi

Thanks for the report. That is something we will have to check in a later version. Right now we only compare the actual values and not the "real" data behind them to validate if the warning and critical ranges actually make sense.

As the checker part is going to be redesigned anyway, I will add that to the list.

@LordHepipud LordHepipud transferred this issue from Icinga/icinga-powershell-plugins Jan 22, 2022
@LordHepipud LordHepipud self-assigned this Jan 22, 2022
@LordHepipud LordHepipud added the Bug There is an issue present label Jan 22, 2022
@LordHepipud LordHepipud added this to the v1.9.0 milestone Jan 22, 2022
@LordHepipud LordHepipud modified the milestones: v1.9.0, v1.10.0 May 2, 2022
@LordHepipud LordHepipud linked a pull request Jun 9, 2022 that will close this issue
@LordHepipud LordHepipud modified the milestones: v1.10.0, v1.11.0 Aug 24, 2022
@LordHepipud LordHepipud modified the milestones: v1.11.0, v1.12.0 Jul 24, 2023
@LordHepipud LordHepipud modified the milestones: v1.12.0, v2.0.0 Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug There is an issue present
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants