BPI Configuration Corrupt and Hostchecks Report Unknown BPI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
shoreypu
Posts: 134
Joined: Wed Mar 13, 2019 2:06 pm

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Post by shoreypu »

Since the upgrade to Nagios XI 5.7.5 this morning, things have gotten worse. The BPI configuration keeps getting erased when I apply a configuration, so we are unable to maintain the BPI checks. Here is a screenshot of the configuration backups.
BPI_Config_Mgmt.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Post by cdienger »

Collected these files while it is a good state:

Code: Select all

/usr/local/nagiosxi/var/components/bpi.xml
/usr/local/nagiosxi/var/components/bpi.log
/usr/local/nagiosxi/etc/components/bpi.conf
Then apply the configuration again to reproduce the problem of the erasing the BPI config and collect the logs again. I'd like to see a before and after. I would also like to see a copy of the CCM database which can be gathered with:

Code: Select all

mysqldump -uroot -pnagiosxi nagiosql > nagiosql.sql
Please send all the data to me via private message.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shoreypu
Posts: 134
Joined: Wed Mar 13, 2019 2:06 pm

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Post by shoreypu »

The files have been sent. Thanks
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Post by cdienger »

Just an update to let you know that I've received the files and loading them into a lab machine now to test. I'll update you later today or tomorrow.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Post by cdienger »

I've been able to reproduce with the data provided. I'm still digging into this, but it looks like it has to do with the "Remove missing hosts and services from all groups" option enabled on the settings page. It's an option that can be disabled as a potential temporary work around.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shoreypu
Posts: 134
Joined: Wed Mar 13, 2019 2:06 pm

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Post by shoreypu »

Just checking back for an update. I've implemented the temporary workaround, but I've been apprehensive to enable the associated checks at this time.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Post by cdienger »

I don't have an update to share but will look into this again some more and will update you tomorrow.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Post by cdienger »

I'm pinging dev to get more eyes on this and will have another update tomorrow. Oddly it only seems to be a problem when applying configuration in the web interface. It doesn't seem to be a problem when applying from the command line or running the syncall directly:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
php /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=syncall
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shoreypu
Posts: 134
Joined: Wed Mar 13, 2019 2:06 pm

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Post by shoreypu »

I recently upgraded to v5.8.2, then re-enabled "Remove missing hosts and services from all groups" to see if the issue was resolved with the upgrade, however it was not. Are there any updates from your end?

Thanks
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Post by ssax »

First, edit this file:

Code: Select all

/usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php
Change this (line 287):

Code: Select all

    $config_string = process_post($arr, $add);
To:

Code: Select all

    $vars = array();
    $config_string = process_post($arr, $add, $vars);
Then see if that fixes it.

If it doesn't, try increasing Admin > Performance Settings > Subsystem > BPI Sync NDO Startup Timeout to a higher value (say like 300) and see if that fixes it.

If neither of those fixes it, please create a ticket for this and include a link back to this forum thread so we can get a remote session setup to investigate further:

https://support.nagios.com/tickets/

Thank you!
Locked