Hi support,
Want to check that if Nagios XI has a recommended upper limit of hosts/services number per node?
Because we're recently facing this kind of performance issue: every time I (accidentally) click the report button, the PHP hangs.
Nagios XI version: 5.6.2
CPU/Memory/Disk: 4 core/16GB/400GB
hosts: 700
services: ~35000
Is there any solution for this?
Report function is hanging
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Report function is hanging
Hi @azvers,
We have a article to guide you through the process on our knowledge-base at:
Nagios XI - Optimizing The PHP Settings File
Let us know if this resolve the issue for you.
I believe you system is hitting the upper limits on the default PHP settings and that's why its hanging. You'll want to bump up the max_input_vars, memory_limit, max_execution_time and max_input_time in the php.ini file.Because we're recently facing this kind of performance issue: every time I (accidentally) click the report button, the PHP hangs.
We have a article to guide you through the process on our knowledge-base at:
Nagios XI - Optimizing The PHP Settings File
Let us know if this resolve the issue for you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Report function is hanging
Hi support,
I changed these properties in the /etc/php.ini file:
max_input_vars: 18000
memory_limit: 4096M
max_execution_time: 180
max_input_time: 180
(note: the /etc/php.ini is the only php.ini I found under /etc dir.)
And turned out that the response time of nagios xi web is much faster than before.
But unfortunately, the report function still needs a lot of time to consume data to generate output.
It took around 200 seconds (yes) to show the Availability report.
Is there further tuning I can do?
Such as ulimits?
The DOS concern is not an issue so far, I would like to allow as more resources as possible for this nagios XI server.
(Note: This server's memory is 32 GB, instead of 16. The previous info I provided was wrong.)
I changed these properties in the /etc/php.ini file:
max_input_vars: 18000
memory_limit: 4096M
max_execution_time: 180
max_input_time: 180
(note: the /etc/php.ini is the only php.ini I found under /etc dir.)
And turned out that the response time of nagios xi web is much faster than before.
But unfortunately, the report function still needs a lot of time to consume data to generate output.
It took around 200 seconds (yes) to show the Availability report.
Is there further tuning I can do?
Such as ulimits?
The DOS concern is not an issue so far, I would like to allow as more resources as possible for this nagios XI server.
(Note: This server's memory is 32 GB, instead of 16. The previous info I provided was wrong.)
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Report function is hanging
With ~35000 checks, the limiting factor for the Availability Report is going to be disk speed, there really isn't anything you can do beside migrate to faster disks (think raid array of SSD drives) to increase the performance.axvers wrote:Is there further tuning I can do?
Re: Report function is hanging
OK!
Thanks for help!
Thanks for help!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Report function is hanging
No problemaxvers wrote:OK!
Thanks for help!