GET objects/servicestatus cnt 5451 fails 15635 works

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

GET objects/servicestatus cnt 5451 fails 15635 works

Post by awilson »

Hi. I'm running the get object/status API call on a server that has 5451 services and it fails with the "{server} is currently unable to handle this request" error. This server has 12 CPUs and 32 GB of memory. I've tried using a browser and at the command line.

Another server with the same configuration has 15635 services and it completes.

Both systems are running RHEL 6 and Nagios is 5.4.4.

Any ideas on what to look for?

Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: GET objects/servicestatus cnt 5451 fails 15635 works

Post by scottwilkerson »

You may need to increase the memory_limit in the php.ini and restart httpd

You should be able to confirm if this is the case by tailing the httpd/error_log while attempting to make the API request

Code: Select all

tail -f /var/log/httpd/error_log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: GET objects/servicestatus cnt 5451 fails 15635 works

Post by awilson »

Hi. It appears that the memory limit is the issue.

Code: Select all

[Wed Dec 04 14:35:36 2019] [error] [client 10.10.20.80] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 64 bytes) in /usr/local/nagiosxi/html/backend/includes/xml2json.php on line 203

The value is currently 128M

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: GET objects/servicestatus cnt 5451 fails 15635 works

Post by scottwilkerson »

I would try to bump this to 256M and restart httpd
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: GET objects/servicestatus cnt 5451 fails 15635 works

Post by awilson »

I doubled it to 256. That worked. Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: GET objects/servicestatus cnt 5451 fails 15635 works

Post by scottwilkerson »

awilson wrote:I doubled it to 256. That worked. Thanks!
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked