Page 1 of 1

statusjson.cgi show truncated json

Posted: Thu Jun 12, 2014 10:42 am
by mashckoff
Hello
I noticed output from statusjson.cgi is truncated from time to time. I mean the returning json is incomplete, no end of file

Code: Select all

 ....(lot of lines)
        "HDD Space": {
          "host_name": "pdvlacnx310",
          "description": "HDD Space",
          "plugin_output": "DISK OK - free space: / 19934 MB (81-371659088node=93%):",
          "long_plugin_output": "",
          "perf_data": "/=4469MB;20567;23138;0;25709",
          "max_attemps": 3,
          "current_attempt": 1,
          "status": 2,
          "last_update": 1400183388000,
          "has_been_checked": true,
          "should_be_scheduled": true,
Nagios Core 4.0.4 on Red Hat Enterprise Linux Server release 6.4 (Santiago)
Compiled from sources.

I've never seen this. Investigations haven't helped to understand the reason of this and how I can fix it :(

Re: statusjson.cgi show truncated json

Posted: Thu Jun 12, 2014 4:28 pm
by Box293
Possibly a chatacter in the data being returned needs to be escaped? That character might be causing it to unexpectedly terminate.

Another thing to look at is the amount of data being returned. You might be hitting a limit somewhere.

You might need to contact the author of status-json to see if they can help.

http://exchange.nagios.org/directory/Ad ... on/details

It appears that it hasn't been updated for two years.