Hello, I want to create Sensors to get the result from Batch files. I get the error Response not wellformed (code:PE132)
Here is my Batch file
@echo off REM Sample Exe/Script Advanced sensor REM Returns four sensor channels with static values to standard OUT REM Predefines limits for one channel REM < and > must be escaped in command line scripts echo ^<?xml version="1.0" encoding="Windows-1252" ?^> echo ^<prtg^> echo ^<channel^>BDP1-VIF0011^</channel^> echo ^<unit^>Custom^</unit^> echo ^<mode^>Absolute^</mode^> echo ^<showChart^>1^</showChart^> echo ^<showTable^>1^</showTable^> echo ^<warning^>0^</warning^> echo ^<float^>0^</float^> echo ^<value^>0^</value^> echo ^<LimitMaxError^>80^</LimitMaxError^> echo ^<LimitMaxWarning^>37^</LimitMaxWarning^> echo ^<LimitWarningMsg^>My custom note for warnings^</LimitWarningMsg^> echo ^<LimitErrorMsg^>My custom note for errors^</LimitErrorMsg^> echo ^<LimitMode^>1^</LimitMode^> echo ^</result^> echo ^<result^> echo ^<channel^>BDP1-VIF0012^</channel^> echo ^<unit^>Custom^</unit^> echo ^<mode^>Absolute^</mode^> echo ^<showChart^>1^</showChart^> echo ^<showTable^>1^</showTable^> echo ^<warning^>0^</warning^> echo ^<float^>0^</float^> echo ^<value^>0^</value^> echo ^<LimitMaxError^>80^</LimitMaxError^> echo ^<LimitMaxWarning^>37^</LimitMaxWarning^> echo ^<LimitWarningMsg^>My custom note for warnings^</LimitWarningMsg^> echo ^<LimitErrorMsg^>My custom note for errors^</LimitErrorMsg^> echo ^<LimitMode^>1^</LimitMode^> echo ^</result^> echo ^<result^> echo ^<channel^>BDP1-VIF0013^</channel^> echo ^<unit^>Custom^</unit^> echo ^<mode^>Absolute^</mode^> echo ^<showChart^>1^</showChart^> echo ^<showTable^>1^</showTable^> echo ^<warning^>0^</warning^> echo ^<float^>0^</float^> echo ^<value^>0^</value^> echo ^<LimitMaxError^>80^</LimitMaxError^> echo ^<LimitMaxWarning^>37^</LimitMaxWarning^> echo ^<LimitWarningMsg^>My custom note for warnings^</LimitWarningMsg^> echo ^<LimitErrorMsg^>My custom note for errors^</LimitErrorMsg^> echo ^<LimitMode^>1^</LimitMode^> echo ^</result^> echo ^<result^> echo ^<channel^>BDP1-VIF0014^</channel^> echo ^<unit^>Custom^</unit^> echo ^<mode^>Absolute^</mode^> echo ^<showChart^>1^</showChart^> echo ^<showTable^>1^</showTable^> echo ^<warning^>0^</warning^> echo ^<float^>0^</float^> echo ^<value^>0^</value^> echo ^<LimitMaxError^>80^</LimitMaxError^> echo ^<LimitMaxWarning^>37^</LimitMaxWarning^> echo ^<LimitWarningMsg^>My custom note for warnings^</LimitWarningMsg^> echo ^<LimitErrorMsg^>My custom note for errors^</LimitErrorMsg^> echo ^<LimitMode^>1^</LimitMode^> echo ^</result^> echo ^<result^> echo ^<channel^>BDP1-VIF0021^</channel^> echo ^<unit^>Custom^</unit^> echo ^<mode^>Absolute^</mode^> echo ^<showChart^>1^</showChart^> echo ^<showTable^>1^</showTable^> echo ^<warning^>0^</warning^> echo ^<float^>0^</float^> echo ^<value^>WARN:TPG^</value^> echo ^<LimitMaxError^>80^</LimitMaxError^> echo ^<LimitMaxWarning^>37^</LimitMaxWarning^> echo ^<LimitWarningMsg^>My custom note for warnings^</LimitWarningMsg^> echo ^<LimitErrorMsg^>My custom note for errors^</LimitErrorMsg^> echo ^<LimitMode^>1^</LimitMode^> echo ^</result^> echo ^<result^> echo ^<channel^>BDP1-VIF0022^</channel^> echo ^<unit^>Custom^</unit^> echo ^<mode^>Absolute^</mode^> echo ^<showChart^>1^</showChart^> echo ^<showTable^>1^</showTable^> echo ^<warning^>0^</warning^> echo ^<float^>0^</float^> echo ^<value^>0^</value^> echo ^<LimitMaxError^>80^</LimitMaxError^> echo ^<LimitMaxWarning^>37^</LimitMaxWarning^> echo ^<LimitWarningMsg^>My custom note for warnings^</LimitWarningMsg^> echo ^<LimitErrorMsg^>My custom note for errors^</LimitErrorMsg^> echo ^<LimitMode^>1^</LimitMode^> echo ^</result^> echo ^<result^> echo ^<channel^>
Add comment