BPI Process Unknown after 5.6.5 upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

BPI Process Unknown after 5.6.5 upgrade

Post by rferebee »

This is a continuation from another thread.

I upgraded from version 6.5.3 to 6.5.6.

Also, this seems to have affected some of by BPI Host Groups and Services.

I attempted to re-sync the BPI hostgroups and services which typically resolves the Unknow error, but it didn't work.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: BPI Process Unknown after 5.6.5 upgrade

Post by lmiltchev »

Were these host/services/BPI groups delete from Nagios XI PRIOR to upgrading it? Can you see them in the GUI?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: BPI Process Unknown after 5.6.5 upgrade

Post by rferebee »

All of the BPI hosts/services that are showing as Unknown are still in the GUI, they were not deleted.

Looking at the error in the BPI.log, it seems some of the Host Groups and Service Groups are looking for resources that are no longer in Nagios XI and for some reason the re-sync isn't updating them. The resources they're looking for haven't been in XI for a long time.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: BPI Process Unknown after 5.6.5 upgrade

Post by rferebee »

Knock knock, you guys still there?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: BPI Process Unknown after 5.6.5 upgrade

Post by ssax »

Yes, we are still here, we had a company outing yesterday.

I'm investigating your information now.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: BPI Process Unknown after 5.6.5 upgrade

Post by ssax »

Do you guys edit your BPI stuff manually or from the command line at all?

I'm thinking there's a bug somewhere as there's some special characters in your file (that I haven't seen before) and I want to make sure I understand the process that you guys take to narrow down on where the bug is.

I'm cleaning up your bpi config manually, it's not a fun, quick, or simple process but it helps me understand the issue better because it's a really complex process in the backend.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: BPI Process Unknown after 5.6.5 upgrade

Post by ssax »

Please send me your /etc/php.ini as well.

Please run these command and send me the full output:

Code: Select all

su - nagios
php /usr/local/nagios/libexec/check_bpi.php DNSservice
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: BPI Process Unknown after 5.6.5 upgrade

Post by rferebee »

I have never edited any BPI items from the command line. The BPI stuff was setup before I moved to this team, so I'm unsure what the process was to set them up. I'm almost certain it was via the GUI though.

Here's the output of the command you sent:

[nagios@nagiosxi ~]$ php /usr/local/nagios/libexec/check_bpi.php DNSservice
PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491
Unknown BPI Group Index


Attached is the .INI file you requested.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: BPI Process Unknown after 5.6.5 upgrade

Post by ssax »

PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491
Nagios IM was an old product you are not likely using, please run this command to remove it (to fix that warning as well):

Code: Select all

rm -rf /usr/local/nagiosxi/html/includes/components/nagiosim
Then edit your /etc/php.ini and change these values:

Code: Select all

max_execution_time = 30     

max_input_time = 60

memory_limit = 128M
To:

Code: Select all

max_execution_time = 300     

max_input_time = 300

memory_limit = 1G

max_input_vars = 100000

Then restart apache:

Code: Select all

service httpd restart
Now go validate the viewing and the download (while running the tail command) so that I can see if anything has changed AND let me know the results.
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: BPI Process Unknown after 5.6.5 upgrade

Post by rferebee »

Where is max_imput_vars located? I'm not seeing that setting anywhere in the .ini.

Also, how do I do this, "Now go validate the viewing and the download (while running the tail command) so that I can see if anything has changed AND let me know the results."???
Locked