Page 2 of 2

Re: BPI keeps spinning

Posted: Fri Apr 20, 2018 12:31 pm
by lmiltchev
Usually missing hosts/services (that have been deleted in the CCM) from BPI groups can cause these kind of issues. In the "new" BPI (in Nagios XI 5.5) config errors wonldn't prevent the entire BPI to crash.

I was hoping to find an error or two in the log file, and give you an easy fix. However, you have way too many errors in the bpi.log. :(

Here's what you can do:

1. To try displaying the "Medium Priority" page:

a) Increase the resource limits in the /etc/php.ini file, for example, from this:

Code: Select all

max_execution_time = 30
max_input_time = 60
memory_limit = 128M
to this:

Code: Select all

max_execution_time = 120
max_input_time = 240
memory_limit = 1024M
Also, add this to the bottom of the file:

Code: Select all

max_input_vars=100000
b) Edit the /etc/httpd/conf/httpd.conf file by adding the following line to the bottom:

Code: Select all

LimitRequestLine 100000
c) Restart apache:

Code: Select all

service httpd restart
2. To get rid of the errors in BPI:

a) Copy the entire bpi.conf in a test editor, e.g. Notepad++.

b) Go to Home > BPI > Manually Edit Config, and delete the entire config.

c) Start copying/pasting chunks of code (for example, 10 BPI groups at a time) from the saved bpi.conf to your actual config (under the BPI Configuration Editor), clicking on "Save Configuration", and verifying that you could view the page under the "Medium Priority" tab.

Note: This may take a while, and it would be a tedious process, but with so many "Error: Can't find a service with host" errors in the bpi.log, this would be your only option.

Let us know if this helped.

Re: BPI keeps spinning

Posted: Tue Apr 24, 2018 8:41 am
by rjmon
I followed the instructions in updating php.ini and httpd.conf but that was not fixing the issue. The second part helped, in cleaning up the config files by adding one block at a time. The file is corrupted and it contained ^M characters. Config file on the nagiosxi versus on the server they look different. That is some junk characters was displaying on the nagiosxi.

Thanks for your help. Please close this issue.

Re: BPI keeps spinning

Posted: Tue Apr 24, 2018 9:34 am
by lmiltchev
I am glad I could help! :)