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?
Hi,
Can you please mail us at support@site24x7.com with the logs to further analyze the issue?
Thanks!
Regards
Hisham
Hi,
Currently, Site24x7 Windows plugin does not support null value attributes. This issue is the result of defining such attributes.
Please change the script to replace the null with empty string ("") if the attribute type is string or replace the null with '0' if the attribute type is a number.
Let us know if this helps. For further questions, if any, please comment in the below thread.
Regards,
Hisham