Hello, I have a script for a EXE/Script Advanced Sensor. However, the sensor does not work. Error from PRTG Dashboard: "XML: The returned XML does not match the expected schema. (Code: PE233) -- JSON: The returned JSON does not match the expected structure (Invalid JSON.). (Code: PE231)"
When looking at the log files I noticed the following, the result contains events that occur outside of Write-Host <prtg> ... Write-Host</prtg> happened. Why does PRTG behave like this? Can this be my error?
Example: Write-Host "Test Message" Write-Host "<prtg>" Write-Host "<result>" "<channel>backup</channel>" "<value>1</value>" "<text>backup finished</text>" "<LimitMinError>0</LimitMinError>" "<LimitMode>1</LimitMode>" "</result>" Write-Host "</prtg>"
Result of Sensor: Test Message <prtg> <result> <channel>Backup</channel>. <value>1</value> <text>backup finished</text>. <LimitMinError>0</LimitMinError> <LimitMode>1</LimitMode> </result> </prtg>
It should have ignored Write-Host "Test Message" or?