I created a new custom xml sensor (powershell script) on our DMZ probe, which gets data from a website. I set the sensor to create the logfile everytime it runs. The log shows the xml as it should look like but the sensor shows "No data since startup". Any ideas?
Article Comments
Hello Florian,
The output looks fine, I receive a working sensor(In 15.3.19.4028) with that result, but you could encounter issues if:
- There's additional output after or prior to the <prtg> </prtg>.
- The script takes too long to run. (There are cmdlets which allow you to measure the execution time)
- The security context/configuration prevents the script from running correctly within PRTG. (You can check the actual output of the script within PRTG configuring the EXE Result within the Sensor's settings. (The output is stored under C:\ProgramData\Paessler\PRTG Network Monitor\Logs (Sensors) ))
Best Regards,
Oct, 2015 - Permalink
Hello Luciano,
I updated from 15.3.19.3882 to Version 15.4.20.4346 and readded the Custom EXE/XML sensor and now I get the output in PRTG. I didn't change anything in the script in the meantime.
The EXE Result was correct before the update, there was no additional output prior or after <prtg> </prtg> and the Skript didn't run longer than mit defined timeout.
Thank you for your tips.
Kind regards,
Oct, 2015 - Permalink
Hello Florian,
thank you for your feedback.
That's quite unusual, since you mention that you've performed no change to the script. Please let me know if you encounter any further issues regarding this matter.
Best Regards,
Oct, 2015 - Permalink
Hello Florian,
we appreciate your contact.
Kindly share the output of the script.
You can use the "Code" snipped to better format the result when you paste it here on the KB:
{{{ Your code/text }}}
Best Regards,
Oct, 2015 - Permalink