Bulk Loading is time out

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
warrennspectrum
Posts: 9
Joined: Mon Apr 20, 2015 9:51 am

Bulk Loading is time out

Post 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 ?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Bulk Loading is time out

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Bulk Loading is time out

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
warrennspectrum
Posts: 9
Joined: Mon Apr 20, 2015 9:51 am

Re: Bulk Loading is time out

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Bulk Loading is time out

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
warrennspectrum
Posts: 9
Joined: Mon Apr 20, 2015 9:51 am

Re: Bulk Loading is time out

Post by warrennspectrum »

Thanks for your support. I will test later
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Bulk Loading is time out

Post by rkennedy »

Let us know if this works for you!
Former Nagios Employee
Locked