Custom EXEXML sensor written, getting the following error: "Error reading response: missing /prtg"
But the output of running the exe at the command line is the following
<prtg> <result> <channel>Data Engine 1</channel> <Value>0</Value> </result> <result> <channel>Client Status</channel> <Value>0</Value> </result> <result> <channel>Document Generation</channel> <Value>0</Value> </result> <result> <channel>Importer Engine</channel> <Value>0</Value> </result> <result> <channel>Data Engine 2</channel> <Value>0</Value> </result> <result> <channel>Data Engine 3</channel> <Value>1</Value> </result> </prtg>
any help is appreciated. Thx.
Article Comments
Thanks, Looking at the logs helped me troubleshoot the issue myself. Maybe do that first next time? Ha.
Apr, 2012 - Permalink
I'm receiving the very same error-message. For testing purposes I've written a c# program that outputs the same XML. In the Settings-tab of the sensor I've selected "Write EXE result to disk", but no logfile appears in the Logs (System) folder. As far as I can check the necessary security settings are set on the folder(s).
May, 2012 - Permalink
I'm encountering the very same error with a self-written EXEXML sensor. Basically it's a test-app that writes out the XML to the console, just like SQLspXML.exe.
A sensor calling the SQLSpXML.exe does work (gives an error where I expect it to give one, gives result where i expect the result).
Moreover, when I create a batchfile in the EXEXML folder which launches the SQLspXML.exe with the arguments from above sensor I get the same error: "Error reading response: missing /prtg".
Second problem is that I don't seem to get the logfile in the Log (System) folder in ProgramData after selecting "Write EXE result to disk"
My Question: what's so specific about the accompanied SQLspXML.exe that I overlook?
May, 2012 - Permalink
Hi,
what are the outputs of the batch file and also of the C# program when run in a console?
Can you please post the outputs?
Best reagrds
May, 2012 - Permalink
Hello,
can you please enable the option in the sensor so that it writes its last result into a logfile on disk? Then please check this one (it's stored in the "Logs (System)"-folder in PRTGs data directory).
best regards.
Apr, 2012 - Permalink