-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error when I try to add a sensor #365
Comments
Please provide the output of |
I have another question: how can I create sensors that remain paused? The situation is that there are sensors that are not needed at the moment, but I would like to have them created but in a paused state. Is there a way to achieve this? Would it involve using the Pause-Object/Suspend-Object cmdlets? If so, could you provide an example? I tried using these cmdlets, but I wasn't successful. |
What Sensor are you trying to add ? Furthermore if you want to build hashmap for the parameters, which i see no point in that szenario, you need to use @BragaGuilherme This should be possible with basic powershell piping: Get-Device -Id 148376 | Get-Sensor -Name Ping | Pause-Object -Forever -Message "You are not needed" |
What issue? You should add sime information... ? |
I have the same issue when adding sensors with either the New-Sensor or Add-Sensor cmdlets. This is the code I run: $device = $newgroup | get-device | select -first 1 $params = New-SensorParameters ExeXml "Non Default Services" This is the result Result of 'Get-PrtgClient -Diagnostic' |
Your prtgapi Version ist Not Up2date. |
Yes, I am trying to add a PythonScript sensor, which has worked before. The issue is that when I try to execute it, accessing another PRTG that is only accessible via IP and does not have a security certificate, this happens. |
Does IT Work any other Sensors. I think you should Test one oneliner on which command IT Is failing. I cannot See that from you informations posted. |
I tested PrtgAPI 0.9.19 on PRTG 23.4.90.1299 $params = New-SensorParameters ExeXml "Non Default Services"
$params.ExeFile = "NonDefaultServicesV2.ps1"
$params.ExeParameters = "-FQDN %host"
$device | Add-Sensor $params I was able to run this code Are you able to update to PRTG 23.4.90.1299 and advise if you're still having the issue? I didn't test on an earlier version of PRTG If you're still having issues are you potentially able to try a ping sensor as well? $device | New-SensorParameters -rt ping | Add-Sensor |
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
Can you help me with this?
Due Dilligance
The text was updated successfully, but these errors were encountered: