Page 1 of 2
Can't configure Servicegroup BPI
Posted: Wed Apr 10, 2013 10:29 am
by mauricio.moya
Hi,
Im having issues to configure a service group that i sinc in the BPI.
I woul like to give Essential Member or change Health Thresholds but show me "ERROR: Unable to match string in config file."
I made a big BPI with services group, and i need to configure those services group now.
Regards,
Re: Can't configure Servicegroup BPI
Posted: Wed Apr 10, 2013 1:34 pm
by mguthrie
Are you able to delete that servicegroup and then resync? If so, does that allow you to edit the group?
If it won't let you delete the synced servicegroup, access the "Manually Edit Config" link, and find the BPI group definition and manually delete it. From there you should be able to resync and edit the group.
Re: Can't configure Servicegroup BPI
Posted: Wed Apr 10, 2013 2:52 pm
by mauricio.moya
OK,
Yes i cant delete this by console. I delete this by the conf file. Then i try to reconfigure and works.
Why this happen?? i woul have to do this every time? There any way to solve this??
This means a lot of work.....
Thanks,
Re: Can't configure Servicegroup BPI
Posted: Wed Apr 10, 2013 3:52 pm
by mguthrie
Not sure why it happened specifically. Could just be a fluke. Are you seeing this behavior repeatedly?
Re: Can't configure Servicegroup BPI
Posted: Thu Apr 11, 2013 3:17 pm
by mauricio.moya
Yes in avery servicegroup that sync in the BPI view.
And now that i change by this way the values of the servicesgroupo. When prese sync servicegroup gain for new servicegroup that i generate the values that i configure in the BPI view for a servicegroup getback to default and again dont let me change again.
Re: Can't configure Servicegroup BPI
Posted: Thu Apr 11, 2013 4:42 pm
by lmiltchev
Run the following command and post the "debug.txt" file, that was generated:
Code: Select all
cat /usr/local/nagiosxi/var/components/bpi.log > /tmp/debug.txt
Re: Can't configure Servicegroup BPI
Posted: Mon Apr 15, 2013 7:02 am
by mauricio.moya
Here is the debug file!
Re: Can't configure Servicegroup BPI
Posted: Mon Apr 15, 2013 4:47 pm
by scottwilkerson
This debug file looks like you have a bunch of items tin your BPI config that do not exist any longer, you may need to remove these by editing the BPI configuration manually.
Re: Can't configure Servicegroup BPI
Posted: Wed Apr 17, 2013 8:29 am
by mauricio.moya
OK, i got the issue now but i Don't know how to solve.
The thing is that when I Syn the Servicegroup (or Hostgroup) the bpi.conf write "define" for each servicegroup. And when i change parameters, they change in the bpi.conf file (E.g if I select "essential meber for services on the SG, in the bpi.conf is added the "|" in the end of this service). But when I press Sync servicegroup again (In case i create a new SG) the bpi.conf file re-write again all the servicegroup and duplicate the "define" groups in the file for each that almost exist at the moment of the re-sync SG.
This issue cause that when I try to reconfig a servicegroup show me the error "ERROR: Unable to match string in config file." because i guess the nagios dont know wich of the "define" servicegroup to modify, because there is many SG repeated.
The thing is that when y Syn the Servicegroup (or Hostgroup) the bpi.conf write "define" for each servicegroup. And when i change parameters, they change in the bpi.conf file (E.g if i selecte "essential meber for services on the SG in the bpi.conf is added the "|" in the end of this service). But when i press Sync servicegroup again (In case i create a new SG) the bpi.conf file re-write again all the servicegroup and duplicate the "define" groups in the file for each that almost exist at the moment of the re-sync SG.
This issue cuase that when i try to reconfig a service group show me the error "ERROR: Unable to match string in config file." because i gues the nagios dont know wish of the "define" service group to modify caause there is many as re-sn i hava made.
Re: Can't configure Servicegroup BPI
Posted: Wed Apr 17, 2013 4:15 pm
by mguthrie
Can you post a few examples of your service group names that you're having issues with?