Hi,
On only one of our XI instances, we are getting HTTP 500 Errors for an API Object Reference(GET objects/servicestatus
). What's odd is that the other API Object References work fine for this XI instance. Any help?
API Call Returning 500 Error
Re: API Call Returning 500 Error
How many Host and Services are setup on the server that is having the issue?
If it has a significant number of checks, you may need to increase the PHP settings so it can have enough space and time to run the API call.
Follow this KB article to increase the settings.
https://support.nagios.com/kb/article/n ... e-611.html
If this does not help, run the following is a root shell on the XI server.
Run the API call and if it errors out, post the output of the tail command so we can see the errors.
Thanks
If it has a significant number of checks, you may need to increase the PHP settings so it can have enough space and time to run the API call.
Follow this KB article to increase the settings.
https://support.nagios.com/kb/article/n ... e-611.html
If this does not help, run the following is a root shell on the XI server.
Code: Select all
tail -f /var/log/httpd/*error_logThanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: API Call Returning 500 Error
"you may need to increase the PHP settings so it can have enough space and time to run the API call"
Yup, after checking the error logs, this is the issue. Thanks!
Yup, after checking the error logs, this is the issue. Thanks!
Re: API Call Returning 500 Error
Your welcome. Glad to help and that it is working now.
I'll close and lock the post as solved but feel free to open a new post in the future if needed.
I'll close and lock the post as solved but feel free to open a new post in the future if needed.
Be sure to check out our Knowledgebase for helpful articles and solutions!