Page 1 of 1

Bulk Loading is time out

Posted: Fri Dec 04, 2015 1:15 am
by warrennspectrum
We used bulk loading 400-500 hosts and services and it was ok in Nagios XI 2014 R2.7
But it is time out to bulk loading 250 hosts and services in the newest Nagios XI 5.2.2.
Is it the bug in the new version ?

Re: Bulk Loading is time out

Posted: Fri Dec 04, 2015 10:42 am
by ssax
Are you seeing anything in your /var/log/httpd/error_log or /var/log/httpd/ssl_error_log related to timeouts or anything? You may need to adjust the max_execution_time in the /etc/php.ini file.

Re: Bulk Loading is time out

Posted: Fri Dec 04, 2015 10:45 am
by lmiltchev
Can you elaborate? How are you cloning these hosts using the "Bulk Host Cloning and Import" wizard? Run the following command and show the output:

Code: Select all

grep "max_input_vars" /etc/php.ini

Re: Bulk Loading is time out

Posted: Tue Dec 08, 2015 12:32 am
by warrennspectrum
Thanks.
We don't change php.ini file and there is no definition of max_input_vars. The default value of max_input_time is 60.
We just use the default bulk loading tool in Nagios XI 5 . We build up Nagios XI 2014 and bulk loading the same file and it's ok

Re: Bulk Loading is time out

Posted: Tue Dec 08, 2015 10:31 am
by lmiltchev
You can add this line:

Code: Select all

max_input_vars = 100000
to the bottom of the php.ini file and restart apache:

Code: Select all

service httpd restart
The default value of "max_input_vars" is 1000.

http://php.net/manual/en/info.configuration.php

We've seen issues in the past with people trying to bulk clone too many hosts at the same time via the "The Bulk Host Cloning & Import Wizard". Adding this line to the bottom of php.ini fixed the problem.

https://assets.nagios.com/downloads/nag ... Wizard.pdf

Re: Bulk Loading is time out

Posted: Wed Dec 09, 2015 2:48 am
by warrennspectrum
Thanks for your support. I will test later

Re: Bulk Loading is time out

Posted: Wed Dec 09, 2015 10:29 am
by rkennedy
Let us know if this works for you!