5.5 BPI Not Loading

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

5.5 BPI Not Loading

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

Re: 5.5 BPI Not Loading

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: 5.5 BPI Not Loading

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

Re: 5.5 BPI Not Loading

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: 5.5 BPI Not Loading

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

Re: 5.5 BPI Not Loading

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: 5.5 BPI Not Loading

Post 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.
I like graphs...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 5.5 BPI Not Loading

Post by scottwilkerson »

Lets open a ticket and reference this thread.

Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked