-
Notifications
You must be signed in to change notification settings - Fork 33
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-IcingaCheckDiskHealth broken in v.1.10.0 #588
Comments
Hi, i ran into the same issue.
Running the Example Command also throws the error.
|
i got the same issue on my systems |
I have run a test on certain machines and I'm unable to reproduce this problem. As far as I can tell, only certain machines run into this problem. Can you please check, what the difference regarding these machines is for disks? I'm pretty sure we can track down this problem. Sadly I have not access to such a broken machine, therefor it is hard for me to provide first steps for troubleshooting. |
on most of my servers the check is working, i got only 3 servers with that error in my enviroment: 1x physical S2D-Cluster Node (Windows Server 2019 Datacenter GER)
1x physical Domain Controller (Windows Server 2019 Standard GER)
1x virtual machine (Windows Server 2016 Standard US)
i have no idea what's the common ground at that servers |
My failing servers are running Windows Server 2019 or 2022 Standard (German) and have either a single hardware RAID volume C: or a single VMware 7 volume C:. After upgrading 3 servers from 1.9.2 to 1.10.0 and all of them showed this error, I stopped the rollout, which means I have no working 1.10.0 host for comparison. |
we got the same issue on new installations after a fresh OS reinstall on physical servers. OS = Windows Server 2019 Datacenter
|
I have just tested this on an affected customer environment and was able to track down the issue. The source of this is the function If a serial number of the disks contains any of the values inside the regex, the regex will return Example: '6000c29dc425c3d96f02d0c3a0145870' -Match "(^-?[0-9].*)+((\.|\,)+[0-9])?(B|KB|MB|GB|TB|PT|KiB|MiB|GiB|TiB|PiB)" Returns: False '6000c29pt425c3d96f02d0c3a0145870' -Match "(^-?[0-9].*)+((\.|\,)+[0-9])?(B|KB|MB|GB|TB|PT|KiB|MiB|GiB|TiB|PiB)" Returns: True Reason: The serial number contains This is why on most machines the plugin will work, because it only throws an error if any values like |
i tried to find a difference / similarities between the machines. It could also be that the UniqueId or the ObjectId are affected. i got a System where none of the strings is contained in the serialnumber, but in the UniqueId and ObjectId |
A possible fix would be to update the regex to this: '6000c29pt425c3d96f02d0c3a0145870' -Match "(^-?[0-9]+)((\.|\,)[0-9]+)?(B|KB|MB|GB|TB|PT|KiB|MiB|GiB|TiB|PiB)$" I will do more internal testing and provide a PR for testing afterwards. |
I just created the linked PR for the Framework. Can anyone please test and validate my internal results? This should resolve the above mentioned issues for all checks and thresholds. |
i've tried your PR but in my case it didnt fixed the problem. and it also messed up other checks like "Invoke-IcingaCheckNetworkInterface"
|
i checked out the commit: 92a56994633f6e0e4ca90c2169ae8c7e07cbbef1 and for me it works. |
i've edited the 2 files and than used "Write-IcingaFrameworkCodeCache" |
i've done it like it is mentioned in IWKB000014 Clear Cache:
|
Unfortunately, replacing the two files and resetting the framework cache did not solve the issue for me either. |
I checked the network plugin and you are right, this one is broken with the PR. |
i can confirm. |
I don't want to push, but I am eagerly awaiting a fix. Is there any progress yet? |
Can you please test the updated PR? This issue and the newly introduced one should be resolved now. Release is planned for December including other issues currently open. |
the PR fixed the issue on all my affected systems |
The last PR fixed my issues as well. Thanks! |
After upgrading Powershell Framework and Plugins to v.1.10.0 the Invoke-IcingaCheckDiskHealth throws an error:
Calling icinga -RebuildCache and Write-IcingaFrameworkCodeCache did not help. All other plugins continue to work as expected.
The text was updated successfully, but these errors were encountered: