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?
Mass Acknowledge screen is blank
Re: Mass Acknowledge screen is blank
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:
Also, show the output of the following commands:
Code: Select all
tail -100 /var/log/httpd/error_logCode: Select all
grep max_input_vars /etc/php.ini
grep default_result_records /usr/local/nagiosxi/html/config.inc.phpBe sure to check out our Knowledgebase for helpful articles and solutions!
-
MrWoodward
- Posts: 66
- Joined: Fri Jan 06, 2017 1:58 pm
Re: Mass Acknowledge screen is blank
Nothing significant in the error_log:
As you can see the last entries are from yesterday.
There is no 'max_input_vars' value in php.ini
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 operationsThere 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-
MrWoodward
- Posts: 66
- Joined: Fri Jan 06, 2017 1:58 pm
Re: Mass Acknowledge screen is blank
I tailed the and am getting this error message when refreshing the Mass Ack page:
Code: Select all
ssl_error_logCode: 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
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:
Save, exit, and restart httpd.
Let us know if this helped. Thank you!
Example:
Code: Select all
memory_limit = 512M
max_input_vars = 100000
Let us know if this helped. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
MrWoodward
- Posts: 66
- Joined: Fri Jan 06, 2017 1:58 pm
Re: Mass Acknowledge screen is blank
Raised mem limit to 256MB. And set that one variable to 100,000.
Ta-da! It works!
Thanks.
Ta-da! It works!
Thanks.
Re: Mass Acknowledge screen is blank
I am glad I could help! 
I am closing this topic. If you have any further questions, please start a new thread. Thank you!
I am closing this topic. If you have any further questions, please start a new thread. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!