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:
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!
BPI - Unable to find group in config file
BPI - Unable to find group in config file
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
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
Re: BPI - Unable to find group in config file
In /usr/local/nagiosxi/var/components/bpi.log a dont have any entry
I have attached de log from cron job
We have various low priority groups configured and now no longer exist, they have been deleted.
Code: Select all
[nagios@nagiosxi ~]$ cat /usr/local/nagiosxi/var/components/bpi.log | wc -l
0
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
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.
If your BPI configuration contains references to invalid objects they should be removed.
Previous Nagios employee
Re: BPI - Unable to find group in config file
please, see attached files
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?
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
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?
XI > Admin > Manage Compononets > BPI
Also can you attach your /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php?
Previous Nagios employee