Page 1 of 1

5.5 BPI Not Loading

Posted: Mon Jul 09, 2018 9:08 am
by Envera IT
After the upgrade to 5.5 our BPI pages just spin without ever loading any of the BPI objects or hosts. The Manual edit button never loads a page, the Service and Host group buttons just spin forever. The High, Medium, and Low priority tabs just spin forever.

I don't have a terrible amount of configuration here that I care about keeping, is there a way to reset BPI to a default state?

Re: 5.5 BPI Not Loading

Posted: Mon Jul 09, 2018 3:35 pm
by lmiltchev
Your page may just be timing out. Try increasing the resource limits in the /etc/php.ini file as described here:

https://support.nagios.com/kb/article/n ... e-611.html

then restart apache

Code: Select all

service httpd restart
and try accessing the BPI page again. Wait for a few minutes to see if the page will eventually load.

Do you see (can you click on) the "Manually Edit Config" button? If you wanted to reset everything (start "clean"), you could wipe everything from the BPI config, then start creating new BPI groups.

Re: 5.5 BPI Not Loading

Posted: Tue Jul 10, 2018 8:44 am
by Envera IT
lmiltchev wrote:Your page may just be timing out. Try increasing the resource limits in the /etc/php.ini file as described here:

https://support.nagios.com/kb/article/n ... e-611.html

then restart apache

Code: Select all

service httpd restart
and try accessing the BPI page again. Wait for a few minutes to see if the page will eventually load.

Do you see (can you click on) the "Manually Edit Config" button? If you wanted to reset everything (start "clean"), you could wipe everything from the BPI config, then start creating new BPI groups.
No change after restarting httpd.

The "Manually Edit Config" button also doesn't work, it doesn't bring up a spinning wheel instead loading a blank page (besides the NagiosXI header and left hand menu).

Re: 5.5 BPI Not Loading

Posted: Tue Jul 10, 2018 11:38 am
by lmiltchev
In this case, there must be some other error that is causing the issue (not a timeout)... Can you try loading the page then run the following command from the command line, and show the output in code wraps?

Code: Select all

tail -100 /var/log/httpd/error_log
If you don't care about the "old" BPI config, and you are OK with resetting it to the "default", and recreating your BPI groups, you could try:

Code: Select all

cp /usr/local/nagiosxi/html/includes/components/nagiosbpi/bpi.conf /usr/local/nagiosxi/etc/components/bpi.conf
chown apache.nagios /usr/local/nagiosxi/etc/components/bpi.conf
chmod 775 /usr/local/nagiosxi/etc/components/bpi.conf
service nagios restart
serviec httpd restart

Re: 5.5 BPI Not Loading

Posted: Tue Jul 10, 2018 2:29 pm
by Envera IT
Ugh I wrote this out once but then lost it when I relogged in. I don't mean to sound terse below.

tail -100 /var/log/httpd/error_log - nothing is showing for my IP but I'm seeing a ton of logs similar to the following.

Code: Select all

[Tue Jul 10 15:26:27 2018] [error] [client 10.0.2.129] PHP Warning:  pg_set_client_encoding() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-postgres7.inc.php on line 255, referer: http://nagios.envera.local/nagiosxi/index.php?
[Tue Jul 10 15:26:27 2018] [error] [client 10.0.2.129] PHP Warning:  pg_set_client_encoding() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-postgres7.inc.php on line 255, referer: http://nagios.envera.local/nagiosxi/index.php?
[Tue Jul 10 15:26:27 2018] [error] [client 10.0.2.129] PHP Warning:  pg_set_client_encoding() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-postgres7.inc.php on line 255, referer: http://nagios.envera.local/nagiosxi/index.php?
[Tue Jul 10 15:26:27 2018] [error] [client 10.0.2.129] PHP Warning:  pg_set_client_encoding() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-postgres7.inc.php on line 255, referer: http://nagios.envera.local/nagiosxi/index.php?
If you don't care about the "old" BPI config, and you are OK with resetting it to the "default", and recreating your BPI groups, you could try:
So after doing this BPI loaded one time after 3-5 minutes. It only showed a single "Root" BPI object but I then clicked the "Sync Hostgroups" button and it hasn't loaded again since.

We have 3193 hosts if that matters.

Re: 5.5 BPI Not Loading

Posted: Tue Jul 10, 2018 4:05 pm
by lmiltchev
Start a running tail:

Code: Select all

tail -f /var/log/httpd/*_log | tee /tmp/debug.txt
then try to load the BPI page. After a minute or so, stop the tail (ctrl + c), and upload the debug.txt file that was generated in the /tmp directory.

Also, PM me (or anyone on the Nagios Support team) the "/usr/local/nagiosxi/etc/components/bpi.conf" file.

Is opening a support ticket via our support center page an option for you?

Re: 5.5 BPI Not Loading

Posted: Wed Jul 11, 2018 9:37 am
by Envera IT
lmiltchev wrote:Start a running tail:

Code: Select all

tail -f /var/log/httpd/*_log | tee /tmp/debug.txt
then try to load the BPI page. After a minute or so, stop the tail (ctrl + c), and upload the debug.txt file that was generated in the /tmp directory.

Also, PM me (or anyone on the Nagios Support team) the "/usr/local/nagiosxi/etc/components/bpi.conf" file.

Is opening a support ticket via our support center page an option for you?
I've sent the two files over via PM

Yes I can open a ticket if you'd like.

Re: 5.5 BPI Not Loading

Posted: Wed Jul 11, 2018 4:58 pm
by scottwilkerson
Lets open a ticket and reference this thread.

Thanks