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

Add-Sensor : Could not authenticate to PRTG; the specified username and password were invalid. #346

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

Comments

@r0m1CH
Copy link

r0m1CH commented Aug 2, 2023

Describe the bug

Hi,

I updated to the latest version of PRTG and since then, it seems that my script that automatically clean and recreate a new sensor EXE/XML sensor failed with the generic error Could not authenticate.

image

I think this is related to this issue also: #268

Steps to reproduce

$nsCertificateSensorParam = New-SensorParameters ExeXml "NS Certificates SSL Expiration" "NetScaler-CertExpiration.ps1"
$nsCertificateSensorParam.ExeParameters = "%device %linuxuser %linuxpassword"
$nsCertificateSensorParam.Interval = "02:00:00"
Get-Device NETSCALER* | Add-Sensor $nsCertificateSensorParam

The last command gives the error:
Add-Sensor : Could not authenticate to PRTG; the specified username and password were invalid.
At line:1 char:26

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

PSVersion      : 5.1.17763.4644
PSEdition      : Desktop
OS             : Microsoft Windows Server 2019 Datacenter
PrtgAPIVersion : 0.9.18
Culture        : fr-CH
CLRVersion     : .NET Framework 4.8 (528049)
PrtgVersion    : 23.3.86.1520
PrtgLanguage   : english.lng

Additional context

I remain available for any test or if you need more info.

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

Hi @r0m1CH,

Please see #345 for a resolution to this issue

@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 2, 2023
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