BPI - Unable to find group in config file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hotelbeds
Posts: 10
Joined: Wed Jun 29, 2016 5:27 am

BPI - Unable to find group in config file

Post by hotelbeds »

Hello, we have a mistake with BPI sync.
In nagiosxi crontab we have the next commands:
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=synchostgroups > /usr/local/nagiosxi/var/bpi-hg.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=syncservicegroups > /usr/local/nagiosxi/var/bpi-sg.log 2>&1

not always but a lot of executions we have the next response in bpi-[hg/sg].log:
CMD: syncservicegroups
MSG: Unable to find group in config file, no changes made.Unable to find group in config file, no changes made.Unable to find group in config file, no changes made.Unable to find group in config file, no changes made.Unable to find group in config file, no changes made.Backup successfully created.BPI configuration applied successfully!

and in nagiosxi alert history for service check from bpi:
Screenshot_20161115_101912.png
why happens this? we need be elastic/dynamic for hybrid cloud
we have NagiosXI 5.3.2 and the last version of Nagios BPI component 2.5.0
regards!
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: BPI - Unable to find group in config file

Post by avandemore »

Can you supply your BPI Configuration File and /usr/local/nagiosxi/var/components/bpi.log It appears to contain references to things that don't exist.
Previous Nagios employee
hotelbeds
Posts: 10
Joined: Wed Jun 29, 2016 5:27 am

Re: BPI - Unable to find group in config file

Post by hotelbeds »

In /usr/local/nagiosxi/var/components/bpi.log a dont have any entry

Code: Select all

[nagios@nagiosxi ~]$ cat /usr/local/nagiosxi/var/components/bpi.log | wc -l
0
I have attached de log from cron job
bpi-sg.log
bpi-hg.log
We have various low priority groups configured and now no longer exist, they have been deleted.
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: BPI - Unable to find group in config file

Post by avandemore »

I still need your BPI Configuration File. It can be found in GUI > BPI or at /usr/local/nagiosxi/etc/components/bpi.conf.

If your BPI configuration contains references to invalid objects they should be removed.
Previous Nagios employee
hotelbeds
Posts: 10
Joined: Wed Jun 29, 2016 5:27 am

Re: BPI - Unable to find group in config file

Post by hotelbeds »

please, see attached files
bpi.conf
bpi.2016-11-15.txt
When i create the configuration works well and i don´t have any error anywhere.
I think, in some sincronization the command have any problem and these situation make erroneous changes in bpi.conf
If i disable sync command in cron file and i make with button sync in the web manually always works fine, but when enable sync via cron file in question of one or two hours i dont have any group that i have created.

Now, i have bpi.log with information,see attached
all hostsnames with their hostgroups exists and are correct, i dont known why bpi say that doesnt exists
maybe if i´m adding news hosts and services coincide sync with nagios reload? :?
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: BPI - Unable to find group in config file

Post by avandemore »

What BPI version do you have?

XI > Admin > Manage Compononets > BPI

Also can you attach your /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php?
Previous Nagios employee
Locked