Apply Configuration never completes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Apply Configuration never completes

Post by mguthrie »

Something does appear to be timing our during the write configs. There are probably some errors showing in the apache log related to PHP either timing our or hitting the PHP memory limit. If you're seeing either of those towards the end of the apache log go ahead and post the error and we should be able to adjust the appropriate setting.
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Re: Apply Configuration never completes

Post by mrochelle »

Following are some of the errors from the /var/log/httpd/error.log:

[Wed Sep 26 10:58:24 2012] [error] [client 10.1.129.18] PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 523800 bytes) in Unknown on line 0, referer: http://148.80.140.92/nagiosxi/admin/sysstat.php?&=
[Wed Sep 26 10:58:25 2012] [error] [client 10.1.129.18] PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 523800 bytes) in Unknown on line 0, referer: http://148.80.140.92/nagiosxi/admin/sysstat.php?&=
[Thu Sep 27 04:47:44 2012] [error] [client ::1] PHP Fatal error: Allowed memory size of 1048576000 bytes exhausted (tried to allocate 173510221 bytes) in /usr/share/pear/HTML/Template/IT.php on line 648

There are pages of these errors going back and they do correlate to the times I was attempting to write the configuration.

Meanwhile, to meet some project deadlines I have reloaded a smaller configuration of which I will increase to approximately 1200 critical hosts devices for the time being. However, I will be pursuing the the remaining 70K host devices which I need to make contact at least 3 times a day and will scale per server as dense as possible so it will be good to know how best to address this issue so I do not run into it again if possible.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Apply Configuration never completes

Post by scottwilkerson »

It looks like your setup is only allowing 262k of memory for php.

Lets edit your php.ini and change the
memory_limit = 256M

Also, make sure you don't have more that 1 memory_limit line.

Then restart apache

Code: Select all

service httpd restart
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mrochelle
Posts: 238
Joined: Fri May 04, 2012 11:20 am
Location: Heart of America

Re: Apply Configuration never completes

Post by mrochelle »

Ok, change made. It will be a couple of weeks or more before I reach that number of devices. Thanks.
Locked