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?
5.5 BPI Not Loading
Re: 5.5 BPI Not Loading
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
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.
https://support.nagios.com/kb/article/n ... e-611.html
then restart apache
Code: Select all
service httpd restartDo 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!
Re: 5.5 BPI Not Loading
No change after restarting httpd.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 apacheand try accessing the BPI page again. Wait for a few minutes to see if the page will eventually load.Code: Select all
service httpd restart
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.
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...
Re: 5.5 BPI Not Loading
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?
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
tail -100 /var/log/httpd/error_logCode: 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 restartBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: 5.5 BPI Not Loading
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.
We have 3193 hosts if that matters.
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?
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.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:
We have 3193 hosts if that matters.
I like graphs...
Re: 5.5 BPI Not Loading
Start a running tail:
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?
Code: Select all
tail -f /var/log/httpd/*_log | tee /tmp/debug.txtAlso, 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!
Re: 5.5 BPI Not Loading
I've sent the two files over via PMlmiltchev wrote:Start a running tail: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.Code: Select all
tail -f /var/log/httpd/*_log | tee /tmp/debug.txt
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?
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
Lets open a ticket and reference this thread.
Thanks
Thanks