I have written a plugin to monitor the number of files above a certain age in a particular folder based on the powershell template. When monitoring a single folder this plugin works as expected, however when I extend it to cover two folders Site 24x7 reports that the “output is empty or not in JSON format”. If I run the powershell script in terminal on the server it returns a valid output which according the json format checker www.site24x7.com/tools/json-formatter.html Is valid:
Any suggestions as to what might be causing the error?