Exporting XI Config and Import with IP changes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chipngc_nagios
Posts: 14
Joined: Fri Mar 20, 2015 2:46 pm

Exporting XI Config and Import with IP changes

Post by chipngc_nagios »

We have a situation where we have two identical systems one in development the other in production. We have created a XI host and service configuration on the development system. We would like to export that and import that into the production system, however the IP addresses of the hosts are different on the production system. Would there be an easy way to accomplish this task thru the XI tools to import but with different IPs for the hosts and services? Thanks.

Chip
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Exporting XI Config and Import with IP changes

Post by ssax »

You should just be able to grab all the host config files from /usr/local/nagios/etc/hosts, change the IPs, and put them in /usr/local/nagios/etc/import and use the import tool (Configure > Core Config Manager > Tools > Import Config Files) making sure that the overwrite option is selected.
Locked