Page 1 of 1
Mass Acknowledge screen is blank
Posted: Fri Nov 30, 2018 3:38 pm
by MrWoodward
The Mass Acknowledge screen in NagiosXI was working fine.
Then we added around 6000+ hosts to our NagiosXI instance of which there were about 100 or so which were in a DOWN state. I went to acknowledge these new hosts which were Down, but the Mass Acknowledge screen is now blank and doesn't display anything.
So we rolled back the configuration to a state before the addition of the 6000-ish hosts and the Mass Acknowledge screen now displays hosts and services which are down.
Any idea if there is a limitation on Mass Acknowledge or NagiosXI which would cause Mass Acknowledge to stop working?
Re: Mass Acknowledge screen is blank
Posted: Fri Nov 30, 2018 4:07 pm
by lmiltchev
A blank page using indicates a php error. Can you show us a tail of the apache error? When you see the blank Mass Acknowledge page, run the following command and show the output in code wraps:
Code: Select all
tail -100 /var/log/httpd/error_log
Also, show the output of the following commands:
Code: Select all
grep max_input_vars /etc/php.ini
grep default_result_records /usr/local/nagiosxi/html/config.inc.php
Re: Mass Acknowledge screen is blank
Posted: Mon Dec 03, 2018 10:51 am
by MrWoodward
Nothing significant in the error_log:
Code: Select all
sudo tail -100 /var/log/httpd/error_log
[Sun Dec 02 03:12:03 2018] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 02 03:12:03 2018] [notice] Digest: done
[Sun Dec 02 03:12:03 2018] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
As you can see the last entries are from yesterday.
There is no 'max_input_vars' value in php.ini
Code: Select all
config.inc.php:
$cfg['default_result_records'] = 100000; // max number of records to return by default
Re: Mass Acknowledge screen is blank
Posted: Mon Dec 03, 2018 11:18 am
by MrWoodward
I tailed the
and am getting this error message when refreshing the Mass Ack page:
Code: Select all
[Mon Dec 03 11:14:03 2018] [error] [client 10.1.xxx.7] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1572827 bytes) in /usr/local/nagiosxi/html/includes/utils-xmlstatus.inc.php on line 1064, referer: https://fqdn/nagiosxi/
[Mon Dec 03 11:15:26 2018] [error] [client 10.1.xxx.7] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1572866 bytes) in /usr/local/nagiosxi/html/includes/utils-xmlstatus.inc.php on line 1065, referer: https://fqdn/nagiosxi/
[Mon Dec 03 11:16:48 2018] [error] [client 10.1.xxx.7] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1572864 bytes) in /usr/local/nagiosxi/html/includes/utils-xmlstatus.inc.php on line 1065, referer: https://fqdn/nagiosxi/
Re: Mass Acknowledge screen is blank
Posted: Mon Dec 03, 2018 11:33 am
by lmiltchev
It seems like you have exceeded the memory limit set in the php.ini file. Try upping the limit from 128 to 256 or more if your system has the adequate resources. Also, set the max_input_vars value.
Example:
Code: Select all
memory_limit = 512M
max_input_vars = 100000
Save, exit, and restart httpd.
Let us know if this helped. Thank you!
Re: Mass Acknowledge screen is blank
Posted: Mon Dec 03, 2018 11:43 am
by MrWoodward
Raised mem limit to 256MB. And set that one variable to 100,000.
Ta-da! It works!
Thanks.

Re: Mass Acknowledge screen is blank
Posted: Mon Dec 03, 2018 12:31 pm
by lmiltchev
I am glad I could help!
I am closing this topic. If you have any further questions, please start a new thread. Thank you!