I'd like to have a service object defined in Nagios XI, initially created with a text file imported into Nagios XI and be able to edit that configuration file and re-import it into Nagios XI. It looks like this might cause a duplicate service entry. How can I avoid this?
I'd also like to have a host object defined in Nagios XI, initially created with a text file containing a hostgroup or template directive and be able to edit that configuration file and re-import it into Nagios XI. Because multiple values for the hostgroup or template are allowed, how can I instruct Nagios XI to overwrite the previous values rather than append them?
Thanks!
import service and host changes
Re: import service and host changes
Copy your config to "/usr/local/nagios/etc/import/" directory. Open it in a text editor. Make the changes you would like, save and exit. Run "reconfigure_nagios.sh".
This should override the old config. Let us know if you run into some issues.
Code: Select all
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.shBe sure to check out our Knowledgebase for helpful articles and solutions!