icinga-powershell-plugins
icinga-powershell-plugins copied to clipboard
Path not found when pathname contains brackets
I'm trying to check a directory which contains brackets in the pathname, for example:
c:\temp\test [1]\
I tried several ways of escaping the brackets in the path configuration but nothing seems to work. I always receive
Icinga Invalid Input Error was thrown: Invalid Input Exception: Path not found Invalid Input exception occured: Plugin execution failed because the defined -Path does not exist on this system
Thank you for the issue. I assume the problem in this case is that the brackets will be handled as regular expression. I will have a look on that.
Could you please try and test the linked PR? this should resolve the issue.
Thank you for your help. I tested the provided fix but sadly I still receive the error:
Icinga Invalid Input Error was thrown: Invalid Input Exception: Path not found Invalid Input exception occured: Plugin execution failed because the defined -Path does not exist on this system
Have you rebuild the cache after you made those changes?
icinga -RebuildCache { Restart-IcingaForWindows; };
This should actually resolve the issue.