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

Get-Probe command only lists only some probes that are #219

Closed
farinaanthony96 opened this issue May 12, 2021 · 9 comments
Closed

Get-Probe command only lists only some probes that are #219

farinaanthony96 opened this issue May 12, 2021 · 9 comments
Labels
bug Issues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version

Comments

@farinaanthony96
Copy link

Describe the bug
Clearly and concisely describe what you were trying to do, what happened and what you were expecting to happen
When I run the Get-Probe command, only a small list of probes that are currently disconnected from my PRTG instance are listed. There are hundreds of other probes in my instance. This happened only after I updated to the latest API version 0.9.15.

Steps to reproduce
Put the relevant code from your application that caused the issue to happen in the code block below

# Code goes here!
Get-Probe

What is the output of Get-PrtgClient -Diagnostic?

# Output goes here!
PSVersion      : 5.1.18362.1474
PSEdition      : Desktop
OS             : Microsoft Windows 10 Enterprise
PrtgAPIVersion : 0.9.15
Culture        : en-US
CLRVersion     : .NET Framework 4.8 (528040)
PrtgVersion    : 20.4.64.1402
PrtgLanguage   : english.lng

Additional context
Anything else I should know to help solve the issue?
This only happened after updating to the latest version of this API. The Get-Probe command worked on the version prior to 0.9.15.

@farinaanthony96 farinaanthony96 added the alleged-bug Bugs raised by people helpfully using the Bug Report template! label May 12, 2021
@lordmilko
Copy link
Owner

Hi @farinaanthony96,

I feel like this is most likely a duplicate of #215. Due to changes in the latest versions of PRTG, PrtgAPI had to change how it retrieves probes, however due to a bug in the latest version of PRTG that doesn't actually work as expected

If you do

Set-PrtgClient -LogLevel All
Get-Probe -Verbose

in the XML response that is displayed, do you see all of the probes there?

@farinaanthony96
Copy link
Author

farinaanthony96 commented May 17, 2021

No. I still only see the few disconnected probes in the XML. As a work-around, I am still referencing API version 0.9.14. All of my scripts work when I reference the old API.

@lordmilko
Copy link
Owner

Hi @farinaanthony96,

Yes, I would recommend using PrtgAPI 0.9.14 for now. PrtgAPI 0.9.15 changes the way PrtgAPI retrieves probes to workaround PrtgAPI crashing due to the new "PRTG Core Server" device that is present in the latest version of PRTG, however evidently there is also a bug in PRTG which causes this workaround to not always work properly, even though it should

@farinaanthony96
Copy link
Author

Ok. Will updating to the latest version of PRTG help with it, or will that bug still be present? I'm still running v20.

@lordmilko
Copy link
Owner

The bug is also present in the latest version of PRTG; I've reported this to Paessler, but this also raises the question of "how long as this bug been in PRTG"; potentially I may actually need to come up with a new solution for dealing with the "PRTG Core Server" device in PRTG 21.2.67, but for now I would recommend just using older versions of everything

@farinaanthony96
Copy link
Author

Alrighty, thank you @lordmilko !

@lordmilko lordmilko added bug Issues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version and removed alleged-bug Bugs raised by people helpfully using the Bug Report template! labels May 18, 2021
@lordmilko
Copy link
Owner

Hi @farinaanthony96,

I have pushed a pre-release version of PrtgAPI 0.9.16 which reverts the new GetProbe behavior of PrtgAPI 0.9.15 and implements a new workaround for the "PRTG Core Server" autonomous device issue from #215; are you able to download the latest build via the manual installation instructions and advise whether this resolves your issue?

Regards,
lordmilko

@lordmilko
Copy link
Owner

Hi @farinaanthony96,

Are you able to advise whether the new build resolves your issue? I would like to release PrtgAPI 0.9.16 including this fix however would like to confirm the fix does indeed work properly first

Regards,
lordmilko

@lordmilko
Copy link
Owner

Hi @farinaanthony96,

Please be advised PrtgAPI 0.9.16 has now been released. To update PrtgAPI, please run Update-Module PrtgAPI and reopen PowerShell

Regards,
lordmilko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that have been confirmed to be bugs in PrtgAPI and will be fixed in a future version
Projects
None yet
Development

No branches or pull requests

2 participants