BPI keeps spinning

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: BPI keeps spinning

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rjmon
Posts: 106
Joined: Wed Dec 06, 2017 11:39 am

Re: BPI keeps spinning

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

Re: BPI keeps spinning

Post by lmiltchev »

I am glad I could help! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked