Can't make *some changes to cfg files in XI
Posted: Mon May 23, 2016 6:44 pm
NagiosXI 5.2.7
RHEL 6.7
To make a change to an XI config file I pull it into <nagios>/etc/import/, make the modification, then run <nagiosxi>/scripts/reconfigure_nagios
I've configured hosts, hostgroups, contacts, templates, and services this way.
Recently I've been coming across things that I *can't configure like this.
For example: a contact_group that was added to a service via the web interface
I pulled the service cfg into <nagios>/etc/import, removed the line, ran <nagiosxi>/scripts/reconfigure_nagios ...
when I looked at the <nagios>/services/ cfg, the contact_group line that I had just removed was back.
I pulled the service cfg into <nagios>/etc/import, added a contact, ran <nagiosxi>/scripts/reconfigure_nagios to verify I could make a change ...
when I looked at the <nagios>/services/ cfg the addition I made was there.
After removing the problematic contact_groups line via the web gui I was then able to add or remove the line via cli/reconfig.
(oh ... I also found I could add to that contact_group line ... just not remove it or the group that was added via the web gui)
I came across similar behavior with contacts.cfg where changes made via the web interface 'stuck' even if the modification was removed from the cfg.
So it seems that changes (some?all?) to settings made via the web gui prevent any modification of themselves via cli.
We are *going to have changes made both via cli and via the web gui.
Is there some way to know what settings can or can't be changed?
Or maybe a way to force cfg changes to override saved db changes?
RHEL 6.7
To make a change to an XI config file I pull it into <nagios>/etc/import/, make the modification, then run <nagiosxi>/scripts/reconfigure_nagios
I've configured hosts, hostgroups, contacts, templates, and services this way.
Recently I've been coming across things that I *can't configure like this.
For example: a contact_group that was added to a service via the web interface
I pulled the service cfg into <nagios>/etc/import, removed the line, ran <nagiosxi>/scripts/reconfigure_nagios ...
when I looked at the <nagios>/services/ cfg, the contact_group line that I had just removed was back.
I pulled the service cfg into <nagios>/etc/import, added a contact, ran <nagiosxi>/scripts/reconfigure_nagios to verify I could make a change ...
when I looked at the <nagios>/services/ cfg the addition I made was there.
After removing the problematic contact_groups line via the web gui I was then able to add or remove the line via cli/reconfig.
(oh ... I also found I could add to that contact_group line ... just not remove it or the group that was added via the web gui)
I came across similar behavior with contacts.cfg where changes made via the web interface 'stuck' even if the modification was removed from the cfg.
So it seems that changes (some?all?) to settings made via the web gui prevent any modification of themselves via cli.
We are *going to have changes made both via cli and via the web gui.
Is there some way to know what settings can or can't be changed?
Or maybe a way to force cfg changes to override saved db changes?