API "performance data" is shorten

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: API "performance data" is shorten

Post by haile711 »

lmitlchev,

It is truncated for me, I have a ASM devices that im checking, and it's stopped at the pool "fcc_sns"
but i still have 11 more pool after that
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: API "performance data" is shorten

Post by Box293 »

lmiltchev wrote:What is the Nagios XI version that you are currently using?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: API "performance data" is shorten

Post by haile711 »

current version

Code: Select all

Latest Available Version:	
Installed Version:	5.2.0
Last Update Check:	2016-10-12 08:56:02
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: API "performance data" is shorten

Post by lmiltchev »

5.2.0 is not the "current version". It's 5.3.0. I expect to see 5.3.1 out soon. I would recommend upgrading your Nagios XI server as soon as 5.3.1 is released.

It's possible that this is a json encoding issue. What is the OS/architecture of the system you are running Nagios XI on? Try viewing the XML output in the "depricated" "Backend API URL" component:

Admin->Manage Components->Backend API URL->Edit Settings->Select User->Apply Settings->Use the "Current Service Status" URL. Is perfdata sill "shortened"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: API "performance data" is shorten

Post by haile711 »

lmiltchev,

Yea that's the normal way i access the API and it's still shortened.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: API "performance data" is shorten

Post by lmiltchev »

What is the OS/architecture of the system you are running Nagios XI on?
Be sure to check out our Knowledgebase for helpful articles and solutions!
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: API "performance data" is shorten

Post by haile711 »

[root@ma209dlvmon835 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: API "performance data" is shorten

Post by ssax »

You can edit this file:

Code: Select all

/usr/local/nagiosxi/html/includes/utilsx.inc.php
And around line 76 change this code:

Code: Select all

$max = ($length > 4000) ? 4000 : $length; //set max length to 4k.
To something like this:

Code: Select all

$max = ($length > 8000) ? 8000 : $length; //set max length to 8k.
That should do it for you, let us know the results.


Thank you
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: API "performance data" is shorten

Post by haile711 »

ssax,

That did it, thanks you so much for ur help
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: API "performance data" is shorten

Post by dwhitfield »

Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!
Locked