A PRTG user shared a Perl script on GitHub that pulls operational statistics from a Cyber Power UPS and makes the data available to PRTG in XML format. When I run the script from the command prompt it executes as expected and returns XML formatted for PRTG. However, when I try to use the script with PRTG the sensor reports that no data was returned. I enabled the "Write EXE result to disk" setting on the sensor and find that the result file is empty (zero bytes). I looked for a KB article on using Perl with PRTG but didn't find anything.
As a test I changed the sensor to execute perl.exe and in the PRTG sensor parameters field entered '-v'. That * should * execute the perl.exe interpreter and request the installed Perl version information. I realize that this will result in PRTG complaining that the returned data is not in the proper format but it should also allow me to see the version information in the PRTG log file. However, the log file remains empty even after making this change.
Based on those observations it appears that Perl is either not executing (not sure how to test) or the output from Perl that normally goes to the console is not being picked up by PRGT.
Help, what can I do next to continue troubleshooting this issue?
Thank you...
Add comment