Page 1 of 1

After Apply Configuration, BPI group lost

Posted: Fri Jul 19, 2019 9:19 am
by adminskymed
Hi All,

yesterday I did NagiosXI update to version 5.6.5
Today I made a little configuration change in a services (event handler off) and when I did "apply" configuration,
lot of my BPI group are lost.
So I got the bpi.conf file from a backup and I saved it on /usr/local/nagiosxi/etc/components/ (with the right permissions)
After saveing bpi.conf all my configuration appeared on the screen, it looked perfect but then I did a try and
I click on "Apply Configuration" on CCM and after configuration applied again BPI group disappeared.
So I did another try.
I copied again bpi.conf file in /usr/local/nagiosxi/etc/components/and all my bpi groups appeared again, so I did
"Sync Hostgroup" and everything was ok then I did "Sync Servicegroup" and again my bpi group disappeared.

I haven't deleted any servicegroup in the last mount.

Can you give me an help to restore the original situation?
I did a try to use old snapshot but nothing changed, I had restart the server but still the same behaviour.

Thanks
Alessandro

Re: After Apply Configuration, BPI group lost

Posted: Fri Jul 19, 2019 11:30 am
by lmiltchev
To immediately fix the issue, go to Home > BPI > Edit BPI Settings, find the Sync On Apply Config options, clear both check-boxes (Sync all hostgroups and servicegroups on apply config and Remove missing hosts and services from all groups), and click on Apply Settings. Import your original BPI config, so that you can see your groups. Now, they won't disappear when you apply configuration.

To dig a bit deeper... In previous versions of XI, the BPI groups were not synced on apply configuration. They were ONLY synced when you clicked on the "Sync Hostgroups" or "Sync Servicegroups" buttons. So, if you deleted some hostbroups or servicegroups from your system (in the "old" XI), and you haven't clicked on the "Sync Hostgroups" or "Sync Servicegroups" buttons, then you upgraded your XI, applying configuration would sync BPI groups "automatically" and delete the "missing ones".

What is the Nagios XI version that you upgraded from?

Do you still have the "disappearing" hostgroups and servicesgroups on your system? Other words, you may have them in the BPI, but do you see them when you go to CCM > Host Groups or CCM > Service Groups?

Re: After Apply Configuration, BPI group lost

Posted: Mon Jul 22, 2019 9:12 am
by adminskymed
Hi,

thanks for your answer, it has been very usefull.
I don't remember the last version of NagiosXi before update, but usally I keep Nagios updated.

I verified that all SG in CCM > Service Groups are present also in BPI > Servicegroups even after Sync Servicegroup.
I found out what is happening. I have set "Priority" in about 10 SG (HIGH and MEDIUM) and I use these SG to create some BPI Groups,
when I do "Sync Servicegroup" they lost their Priority and disappear from HIGH and MEDIUM Tab and also BPI Groups based on them
lose the association with these SG meanwhile they are still present in BPI > Servicegroup Tabs (obviusly without priority set).

Is it possibile to do something to avoid this behaviour?

Thanks
Alex

Re: After Apply Configuration, BPI group lost

Posted: Mon Jul 22, 2019 10:01 am
by lmiltchev
I found out what is happening. I have set "Priority" in about 10 SG (HIGH and MEDIUM) and I use these SG to create some BPI Groups...
Can you elaborate on this? How are you using these SGs to create BPI groups? When you are adding a new BPI group, you can add only Hosts (H:), Services (S:), and BPI Groups (G:) as members, but NOT Service Groups.

Can you explain how you are doing this, so that we can lab it in-house?

Re: After Apply Configuration, BPI group lost

Posted: Tue Jul 23, 2019 3:02 am
by adminskymed
In attachment you can find screenshot about how I did:

IMG01 is the list of my SG in CCM
IMG02 is how I create BPI Group using a SG (of course before doing this I have made "Sync Servicegroup" in BPI Servicegroup TAB)

Thanks
Alex

Re: After Apply Configuration, BPI group lost

Posted: Tue Jul 23, 2019 8:55 am
by lmiltchev
Thanks for the details! I was wrong about not being able to add service groups as members to BPI groups - sorry about that. I set up three service groups as you - LOW, MEDIUM, and HIGH, and set their priorities accordingly. Next, I created corresponding BPI groups, then synced the servicegroups. The priorities didn't change on me, even when I set up the LOW BPI group with a "Medium" priority, and left its member (LOW SG) with a "Low" priority. I tried various combinations but haven't been able to recreate the issue.

I would recommend that you open a support ticket via our support center here:

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

Send your entire BPI config, and the latest profile. Reference this post in the ticket. We may need to schedule a remote session in order to get to the bottom of this. Thank you!