import service and host changes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kendallchenoweth
Posts: 195
Joined: Fri Sep 13, 2013 10:43 am

import service and host changes

Post by kendallchenoweth »

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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: import service and host changes

Post by lmiltchev »

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".

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
This should override the old config. Let us know if you run into some issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked