Page 1 of 2

BPI Process Unknown after 5.6.5 upgrade

Posted: Wed Aug 14, 2019 9:23 am
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.

Re: BPI Process Unknown after 5.6.5 upgrade

Posted: Wed Aug 14, 2019 10:20 am
by lmiltchev
Were these host/services/BPI groups delete from Nagios XI PRIOR to upgrading it? Can you see them in the GUI?

Re: BPI Process Unknown after 5.6.5 upgrade

Posted: Wed Aug 14, 2019 10:47 am
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.

Re: BPI Process Unknown after 5.6.5 upgrade

Posted: Wed Aug 14, 2019 2:57 pm
by rferebee
Knock knock, you guys still there?

Re: BPI Process Unknown after 5.6.5 upgrade

Posted: Thu Aug 15, 2019 8:53 am
by ssax
Yes, we are still here, we had a company outing yesterday.

I'm investigating your information now.

Re: BPI Process Unknown after 5.6.5 upgrade

Posted: Fri Aug 16, 2019 8:48 am
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.

Re: BPI Process Unknown after 5.6.5 upgrade

Posted: Fri Aug 16, 2019 9:00 am
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

Re: BPI Process Unknown after 5.6.5 upgrade

Posted: Fri Aug 16, 2019 9:39 am
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.

Re: BPI Process Unknown after 5.6.5 upgrade

Posted: Fri Aug 16, 2019 2:23 pm
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.

Re: BPI Process Unknown after 5.6.5 upgrade

Posted: Fri Aug 16, 2019 3:13 pm
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."???