Go to All Forums

Plugin error: output empty of not json format

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:

json format checker output

Any suggestions as to what might be causing the error?

Like (2) Reply
Replies (4)

Re: Plugin error: output empty of not json format

Hi,
Can you please mail us at support@site24x7.com with the logs to further analyze the issue?

Thanks!

Regards
Hisham

Like (0) Reply

Re: Re: Plugin error: output empty of not json format

Mail sent this morning, please be aware that I am based in New Zealand so there may be substantial delays in replying due to time zones.

Like (0) Reply


Re: Re: Re: Plugin error: output empty of not json format

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

 

Like (0) Reply

Was this post helpful?