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

Call to New-Server parameter fails... #282

Closed
JRAndreassen opened this issue Apr 7, 2022 · 2 comments
Closed

Call to New-Server parameter fails... #282

JRAndreassen opened this issue Apr 7, 2022 · 2 comments
Labels
duplicate Questions raised by people who don't know how to search through previous issues :P

Comments

@JRAndreassen
Copy link

Describe the bug

Looks like the call to "http://127.0.0.1/api/getaddsensorprogress.htm" is missing UID/PassHash parameters...

It was working great, but I think something changed with the new version of PRTG

Steps to reproduce

$PRTGDevice | New-SensorParameters -RawType "exexml" -Timeout 120 -verbose -erroraction 'silentlycontinue'

New-SensorParameters: Synchronously executing request http://127.0.0.1/api/sensortypes.json?id=147192&username=prtgadmin&passhash=138742121
New-SensorParameters: Synchronously executing request http://127.0.0.1/controls/addsensor2.htm?id=147192&sensortype=exexml&username=prtgadmin&passhash=138742121
New-SensorParameters: Synchronously executing request http://127.0.0.1/api/getaddsensorprogress.htm?id=147192&tmpid=719
New-SensorParameters : Could not authenticate to PRTG; the specified username and password were invalid.
At line:1 char:15

What is the output of 'Get-PrtgClient -Diagnostic'?

PSVersion      : 5.1.19041.1320
PSEdition      : Desktop
OS             : Microsoft Windows 10 Pro
PrtgAPIVersion : 0.9.14
Culture        : en-US
CLRVersion     : 528372
PrtgVersion    : 22.1.75.1594
PrtgLanguage   : english.lng

Additional context

No response

@JRAndreassen JRAndreassen added the alleged-bug Bugs raised by people helpfully using the Bug Report template! label Apr 7, 2022
@lordmilko
Copy link
Owner

Duplicate of #268

Please update to PrtgAPI 0.9.17

(getaddsensorprogress.htm uses cookie authentication which is what broke in the PRTG update)

@lordmilko lordmilko added duplicate Questions raised by people who don't know how to search through previous issues :P and removed alleged-bug Bugs raised by people helpfully using the Bug Report template! labels Apr 7, 2022
@JRAndreassen
Copy link
Author

Excellent...
I guess I should have checked the release first, sorry for the noise...
Thanks
JR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Questions raised by people who don't know how to search through previous issues :P
Projects
None yet
Development

No branches or pull requests

2 participants