A powershell script in PRTG is permanently throwing the following exception:
XML: Das zurückgelieferte XML entspricht nicht dem erwarteten Schema. (Code: PE233) -- JSON: Das zurückgelieferte JSON entspricht nicht der erwarteten Struktur (No mapping for the Unicode character exists in the target multi-byte code page). (Code: PE231) indication, that some unicode is used, which is not.
The output of the script, run on the console, is this:
<prtg> <result> <channel> Strom Phase A1 </channel> <value> 1,54 </value> <FLOAT>1</FLOAT> <CustomUnit>A</CustomUnit> </result> <result> <channel> Strom Phase A2 </channel> <value> 3,48 </value> <FLOAT>1</FLOAT> <CustomUnit>A</CustomUnit> </result> <result> <channel> Strom Phase A3 </channel> <value> 2,06 </value> <FLOAT>1</FLOAT> <CustomUnit>A</CustomUnit> </result> <result> <channel> Strom Phase B1 </channel> <value> 0 </value> <FLOAT>1</FLOAT> <CustomUnit>A</CustomUnit> </result> <result> <channel> Strom Phase B2 </channel> <value> 0 </value> <FLOAT>1</FLOAT> <CustomUnit>A</CustomUnit> </result> <result> <channel> Strom Phase B3 </channel> <value> 0 </value> <FLOAT>1</FLOAT> <CustomUnit>A</CustomUnit> </result> </prtg>
and the underlying scriptcode is that:
"<prtg>" "<result>" "<channel>" "Strom Phase A1" "</channel>" "<value>" echo $result0 "</value>" "<FLOAT>1</FLOAT>" "<CustomUnit>A</CustomUnit>" "</result>" "<result>" "<channel>" "Strom Phase A2" "</channel>" "<value>" echo $result1 "</value>" "<FLOAT>1</FLOAT>" "<CustomUnit>A</CustomUnit>" "</result>" "<result>" "<channel>" "Strom Phase A3" "</channel>" "<value>" echo $result2 "</value>" "<FLOAT>1</FLOAT>" "<CustomUnit>A</CustomUnit>" "</result>" "<result>" "<channel>" "Strom Phase B1" "</channel>" "<value>" echo $result3 "</value>" "<FLOAT>1</FLOAT>" "<CustomUnit>A</CustomUnit>" "</result>" "<result>" "<channel>" "Strom Phase B2" "</channel>" "<value>" echo $result3 "</value>" "<FLOAT>1</FLOAT>" "<CustomUnit>A</CustomUnit>" "</result>" "<result>" "<channel>" "Strom Phase B3" "</channel>" "<value>" echo $result5 "</value>" "<FLOAT>1</FLOAT>" "<CustomUnit>A</CustomUnit>" "</result>" "</prtg>"
When debugging the sensor, it writes a 514byte File containing (my guess) only whitespaces.
Any idea?
Add comment