statusjson.cgi show truncated json

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mashckoff
Posts: 1
Joined: Thu Nov 07, 2013 5:55 am
Location: Ukraine

statusjson.cgi show truncated json

Post 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 :(
Vadym Mashkov | Software Engineer | Lviv, Ukraine
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: statusjson.cgi show truncated json

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked