Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add-Sensor with params does not work anymore since 23.3.86.1520 (?) "Could not authenticate to PRTG; the specified username and password were invalid."" #348

Closed
derkveenhof opened this issue Aug 11, 2023 · 2 comments
Labels
duplicate Questions raised by people who don't know how to search through previous issues :P

Comments

@derkveenhof
Copy link

Describe the bug

Hey,

I think that Add-Sensor does not work anymore since PRTG 23.3.86.1520 .
When i want to add a simple ping sensor to a device, i can get the sensor parameters via New-SensorParameters but Add-Sensor failes. See Screenshot.

I see in the Verbose that the last webrequest towards the api failes. This (get?) webrequest doest not have &username=yourapiuser&passhash=123456789 appended in the uri.. When i copy the uri and append it myself, it works..

Can this be related to a recent CVE that has being patched by Peassler -> https://advisories.ncsc.nl/advisory?id=NCSC-2023-0383 ( im sorry, this is a Dutch CVE reporting website )

plaatje

Steps to reproduce

Import-Module 'PrtgApi' -Verbose
$Credential = Get-Credential
Connect-PrtgServer -Server 'yourhost' -Verbose -Credential $Credential
$Device = Get-Device -Id 4407 -Verbose
$Params = New-SensorParameters -RawType 'ping' -Device $Device -Verbose
$Sensor = Add-Sensor -Destination $Device -Parameters $Params -Verbose

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

PSVersion      : 5.1.22621.1778
PSEdition      : Desktop
OS             : Microsoft Windows 11 Enterprise
PrtgAPIVersion : 0.9.18
Culture        : nl-NL
CLRVersion     : 533320
PrtgVersion    : 23.3.86.1520
PrtgLanguage   : english.lng

Additional context

No response

@derkveenhof derkveenhof added the alleged-bug Bugs raised by people helpfully using the Bug Report template! label Aug 11, 2023
@lordmilko
Copy link
Owner

Duplicate of #345

@lordmilko lordmilko marked this as a duplicate of #345 Aug 11, 2023
@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 Aug 11, 2023
@derkveenhof
Copy link
Author

Thanks !! i have to look better :P

# for free to join this conversation on GitHub. Already have an account? # 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