Page 1 of 3

BPI Configuration Corrupt and Hostchecks Report Unknown BPI

Posted: Wed Nov 11, 2020 3:51 pm
by shoreypu
I've been having an intermittent issue where where my BPI configuration seems to become corrupted. Our host checks that utilize check_bpi to provide the status of some BPI service groups start reporting the status "Unknown BPI Group Index". If I look at the BPI config, I see a number of blank lines. This time around, I've noticed that all of the service groups are missing. I don't know right now if any of the host groups are missing.

If I apply configuration, without making any changes, the configuration partially returns. All of the service groups return, however the Warning and Critical thresholds that I configured are missing.

I thought this problem was resolved by updating our naming conventions, but the problem has now returned.

I'm running Nagios XI 5.6.13.

Any assistance is greatly appreciated.

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Posted: Thu Nov 12, 2020 3:24 pm
by cdienger
What version of the BPI component is installed? Check under Admin > System Extensions > Manage Components. You can also view setting details of the component by clicking the Edit Settings icon. Please provide a screenshot of the settings as well as a copy of /usr/local/nagiosxi/var/components/bpi.log.

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Posted: Thu Nov 12, 2020 7:37 pm
by shoreypu
Nagios BPI version is 2.8.3

The bpi.log only has one line in it: BEGIN BPI LOG 1569352008

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Posted: Fri Nov 13, 2020 4:06 pm
by ssax
Please PM me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.

I do know they change the way BPI works in XI 5.7+ (has revisioning now), the spaces usually aren't an , PM this file as well:

Code: Select all

/usr/local/nagiosxi/etc/components/bpi.conf
Additionally, I would increase the XML cache threshold from your screenshot to 120 and see if that helps.

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Posted: Wed Nov 18, 2020 9:17 am
by shoreypu
I wasn't sure if I PM'd you the system profile and BPI.conf, so I just sent you the latest versions.

John

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Posted: Wed Nov 18, 2020 7:13 pm
by ssax
Ok, thanks. Try editing your Home > BPI > Edit BPI Settings and change the XML cache threshold to 120 to see if that helps.

What group was it saying was having the issue, I don't see any of those errors in the logs to determine what they are.

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Posted: Thu Nov 19, 2020 11:56 am
by shoreypu
I've updated the XML Cache Threshold to 120 seconds, but I guess we won't know if that resolves it unless the errors occur again.

On the most recent error, I noticed that all of the service groups were missing from the bpi config. When that happened, every host that I have configured, that uses the BPI service group check as the the check command, came in as critical with the error.

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Posted: Thu Nov 19, 2020 7:50 pm
by ssax
The only thing I can think is that if the system wasn't completely up when the cache file was updated it could cause that, that's why I was having you try increasing the XML Cache Threshold to see if that alleviates it.

What do you have set in Admin > Unconfigured Objects > Auto Configure Settings for these?

Code: Select all

Automatically import host/services into the CCM with templates applied below
Automatically apply configuration after import of configs
I'm wondering if you have auto-apply enabled, if so, try disabling that if that XML Cache Threshold doesn't fix it to see if that alleviates it.

I would probably go to XI 5.7 latest where they re-wrote a lot of the BPI stuff (and included revisioning) so that we can see what is occurring. Otherwise, once it starts failing on your current system, grab any error output you are seeing and these files and send them to us (when it's failing):

Code: Select all

/usr/local/nagiosxi/var/components/bpi.xml
/usr/local/nagiosxi/var/components/bpi.log
/usr/local/nagiosxi/etc/components/bpi.conf

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Posted: Fri Nov 20, 2020 10:15 am
by shoreypu
Both Automatically import host/services into the CCM with templates applied below and Automatically apply configuration after import of configs are not enabled.

I'll look at scheduling an upgrade to v 5.7.

Thanks

Re: BPI Configuration Corrupt and Hostchecks Report Unknown

Posted: Mon Nov 23, 2020 3:17 pm
by cdienger
Thanks for the update. Please update us once you've had a chance to upgrade.