Page 1 of 1
API Return Limit
Posted: Fri Nov 02, 2018 10:50 am
by Maxwellb99
Hi Guys,
I'm running 20,000+ checks on a Nagios instance. I'm trying to return the Services object(s) through the API. Subsequently Nagios is returning a 500 error. What's the Max number of JSON objects I can return via the API? Note: Filtering via say "host_name" works.
Thanks,
Maxwell Ramirez
Re: API Return Limit
Posted: Fri Nov 02, 2018 12:15 pm
by scottwilkerson
There isn't a maximum, however you are likely hitting a php memory_limit
edit /etc/php.ini and increase the memory_limit
restart httpd
Re: API Return Limit
Posted: Fri Nov 02, 2018 2:32 pm
by Maxwellb99
haha, yeah I trust you. It works for me on python so I figured it was some config holding me back. I threw 2G of mem at it, but I think I'm going to have to split it up. Well it was fun while it lasted. Still getting a 500 error, but we're ok. Please close this thread. Thanks.
services.PNG
checks.PNG
Re: API Return Limit
Posted: Fri Nov 02, 2018 2:39 pm
by scottwilkerson
Maxwellb99 wrote:haha, yeah I trust you. It works for me on python so I figured it was some config holding me back. I threw 2G of mem at it, but I think I'm going to have to split it up. Well it was fun while it lasted. Still getting a 500 error, but we're ok. Please close this thread. Thanks.
services.PNG
checks.PNG
closing