Skip to content

Error when I try to add a sensor  #365

Description

@BragaGuilherme

What's going on?

Hello Lord Milko, how are you?

I was trying to run this command:

$table = @{ "name_" = "PCT_CROMATOGRAFIA_NITROGENIO"; "pythonscript_" = "Modbus Python.py";"params_" ="registro=17231,nome=PCT_CROMATOGRAFIA_NITROGENIO,tipo=32float";"sensortype" = "pythonscript";"comments_"="teste"};$params = New-SensorParameters $table; Get-Device -Id 39273 | Add-sensor $params;

It was working fine earlier, but now it keeps giving me this error:

Add-sensor : Could not authenticate to PRTG; the specified username and password were invalid.
No linha:1 caractere:280

  • ... w-SensorParameters $table; Get-Device -Id 39273 | Add-sensor $params;
  •                                                   ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Add-Sensor], HttpRequestException
    • FullyQualifiedErrorId : System.Net.Http.HttpRequestException,PrtgAPI.PowerShell.Cmdlets.AddSensor

Can you help me with this?

Captura de tela 2023-11-06 155200

Due Dilligance

  • It wasn't covered by the wiki, I swear!
  • I have tried doing some basic research on this issue but haven't been able to come up with anything. Please help!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestions raised by people who don't know how to program or read the wiki :P

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions