Page 1 of 1

BPI - Unable to find group in config file

Posted: Tue Nov 15, 2016 4:23 am
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!

Re: BPI - Unable to find group in config file

Posted: Tue Nov 15, 2016 12:40 pm
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.

Re: BPI - Unable to find group in config file

Posted: Wed Nov 16, 2016 6:54 am
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.

Re: BPI - Unable to find group in config file

Posted: Wed Nov 16, 2016 12:46 pm
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.

Re: BPI - Unable to find group in config file

Posted: Wed Nov 16, 2016 2:28 pm
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? :?

Re: BPI - Unable to find group in config file

Posted: Wed Nov 16, 2016 3:21 pm
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?