Page 1 of 2
API "performance data" is shorten
Posted: Mon Oct 10, 2016 12:25 pm
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
Re: API "performance data" is shorten
Posted: Mon Oct 10, 2016 3:25 pm
by lgroschen
Could you please post the API query you are running?
Re: API "performance data" is shorten
Posted: Tue Oct 11, 2016 7:56 am
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"
Re: API "performance data" is shorten
Posted: Tue Oct 11, 2016 10:51 am
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
Re: API "performance data" is shorten
Posted: Tue Oct 11, 2016 10:57 am
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
Re: API "performance data" is shorten
Posted: Tue Oct 11, 2016 12:07 pm
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
Re: API "performance data" is shorten
Posted: Tue Oct 11, 2016 12:20 pm
by haile711
logs attached
Re: API "performance data" is shorten
Posted: Tue Oct 11, 2016 1:42 pm
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.
Re: API "performance data" is shorten
Posted: Tue Oct 11, 2016 1:52 pm
by haile711
lmiltchev,
output file attached
Thanks
Re: API "performance data" is shorten
Posted: Tue Oct 11, 2016 2:07 pm
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?