Closed eren-kemer closed 6 years ago
You are right, the syntax
D:\
is causing an issue with PSx64.exe. You can use the -raw
switch as workaround.
C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML>PSx64.exe -f="
PRTG-VeeamBRStats.ps1" -raw
0
C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML>
Didn't work as expected. Am i doing it wrong?
No, it seems to be a problem with PSx64.exe in general. I created a simple testcase with only one output line in a PowerShell Script and ran into the same problem.
Might you please verify that:
C:\tools>PSx64.exe -f="test.ps1"
0:Write Host
Write Output
C:\tools>PSx64.exe -f="test.ps1" -raw
0
Test Code: test.zip
`
Same Behaviour.
C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML>PSx64.exe -f="
test.ps1"
0:Write Host
Write Output
C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML>PSx64.exe -f="
test.ps1" -raw
0
C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML>
Ok, a Support Case should be opened...
Will you, or should I open a support case?
Might you take care of that?
Sent a mail to prtgtoolsfamily. Will keep you updated!
I have received a modified Psx64.exe . That has worked and is going to be published on the website soon.
Thanks for your feedback!
Sensor failing. Issue is that the sensor output is incomplete when run with PSx64.exe.
Running Psx64 with the powershell script returns only almost the end of the output:
whereas running the script without PSx64.exe, the script returns everything in the output.
I believe the issue might be because of "Laufwerk D:\" in the channel name.