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-SensorTarget fails with "Could not authenticate to PRTG; the specified username and password were invalild" #272

Closed
gjh71 opened this issue Feb 23, 2022 · 1 comment
Labels
duplicate Questions raised by people who don't know how to search through previous issues :P

Comments

@gjh71
Copy link

gjh71 commented Feb 23, 2022

We use powershell to configure new probes and add sensors to them. This is not a daily job, but the script used to work ok let's say about a month ago.

I can get the device using:

get-probe "db01"|get-device *sqlserver

But if I then want to find specific (advanced) sensors: that fails:

get-probe "db01"|get-device *server|Get-SensorTarget ExeXml -name "GetPrtgSqlLastDatabaseBackup.ps1" -Parameters

It results in: "Get-SensorTarget: Could not authenticate to PRTG; the specified username and password were invalid."
The file 'GetPrtgSqlLastDatabaseBackup.ps1' is present on the probe.

Version info:
prtgapi: 0.9.16
(hosted) prtg: 22.1.74.1869

@lordmilko lordmilko added the duplicate Questions raised by people who don't know how to search through previous issues :P label Feb 23, 2022
@lordmilko
Copy link
Owner

Duplicate of #268

@lordmilko lordmilko marked this as a duplicate of #268 Feb 23, 2022
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