-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
PrtgAPI Treating [ ] in Object Name As Wildcard Expression #255
Comments
Correction to my earlier message, this is actually as a result of how PowerShell treats wildcards. Typically when people talk about "wildcard characters" in PowerShell are usually referring to the If you absolutely must filter for this sensor by name, your best bet would be to do it like so flt name eq "esxgi02 [Hardware Status]" | Get-Sensor For more information on creating custom filters, please see the wiki |
I've had a look into this a little further and have found a way PrtgAPI may be able to work around this in a future release; for the meantime however you should be able to get by by using the workaround described above |
Hi there, thanks for your efforts, i think my approach was anyway wrong and i solved the problem of searching for a known sensor through the sensors id. this approach makes more sense because of the clarity Identity of the Sensor. And thank you again for your great api. it makes many of my ideas possible Regards |
Describe the bug
Hello,
get-sensor:
Seems there is a Parsing Problem of the Name Property (maybe the device also). Maybe its a Problem with Brackets)
example is below
PRTG:
PRTG Version PRTG Network Monitor 21.4.73.1656 x64
Operating SystemMicrosoft Windows Server 2019 Datacenter (10.0 Build 17763), 16 CPUs (16x x64 Model 63 Step 0), code page "Windows-1252", on VMware
Under some circumstances when get-sensor throw an error it will deliver all Sensors. When you alter the Data with a piped set-ObjectProperty all Sensor Data will be overwritten not only the one you tried too ...
But anyway thanks for this very good solution to access and chance the Data on PRTG. You made my day when i discovered this program.
Thanks
Heiko
Steps to reproduce
What is the output of 'Get-PrtgClient -Diagnostic'?
Additional context
No response
The text was updated successfully, but these errors were encountered: