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

API "performance data" is shorten

Post by haile711 »

To support,

I have one pool stats check for a LTM-F5 devices that report the status of the pool statistics, we are using the API to get the data to display, but it is cut short and not showing all the data after a certain limit. Is there a modify to let it display all the data? or longer string?

Thanks

Hai
You do not have the required permissions to view the files attached to this post.
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: API "performance data" is shorten

Post by lgroschen »

Could you please post the API query you are running?
/Luke
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: API "performance data" is shorten

Post by haile711 »

Igroschen,

This is the url for the API

Code: Select all

curl -XGET "http://ma209dlvmon836/nagiosxi/api/v1/objects/servicestatus?apikey=j3fo9ukh&pretty=1"
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: API "performance data" is shorten

Post by rkennedy »

Could you please attempt to access it once again, and then post these 4 log files for us to look at? My guess is you're hitting a limit somewhere.

Code: Select all

/var/log/httpd/error_log
/var/log/httpd/ssl_error_log
/var/log/httpd/access_log
/var/log/httpd/ssl_access_log
Former Nagios Employee
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 »

Also, how many characters do you have in the output?

Code: Select all

curl -XGET "http://ma209dlvmon836/nagiosxi/api/v1/objects/servicestatus?apikey=j3fo9ukh&pretty=1" | wc -m
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,

Code: Select all

[nagios@ma209dlvmon836 static]$ curl -XGET "http://ma209dlvmon836/nagiosxi/api/v1/objects/servicestatus?apikey=j3fo9ukh&pretty=1" | wc -m
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5549k    0 5549k    0     0  1014k      0 --:--:--  0:00:05 --:--:-- 1242k
5682815
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: API "performance data" is shorten

Post by haile711 »

logs attached
You do not have the required permissions to view the files attached to this post.
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 »

You have about x5 number if characters compared to what I have in my test XI box but I don't believe that the number of characters in the output plays any role here... Can you send the output to a text file, and post it? I would like to see if the output is truncated.

Run:

Code: Select all

curl -XGET "http://ma209dlvmon836/nagiosxi/api/v1/objects/servicestatus?apikey=j3fo9ukh&pretty=1" > /tmp/output.txt
then post the "output.txt" that was created in the "/tmp" directory.

What is the Nagios XI version that you are currently using? It is possible that this is a "version specific" issue. We will try to recreate it in house.
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,

output file attached

Thanks
You do not have the required permissions to view the files attached to this post.
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 »

I don't see an issue with this output (it doesn't look truncated), do you?

What is the Nagios XI version that you are currently using?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked