The values given back by custom EXE/Script sensors may not contain any line breaks, otherwise the sensor will not be able to process them correctly.
How do I avoid line breaks when using a Powershell script with PRTG?
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Powershell seems to perform automatic word wrapping when executed on the command line like
Powershell -file script.ps1 > output.txtIn order to avoid automatic line breaks, please start your Powershell scripts with the following line:
$host.UI.RawUI.BufferSize = new-object System.Management.Automation.Host.Size(512,50)Nov, 2010 - Permalink