Page 1 of 1
Copy definitions of hosts and services to Another NagiosXi
Posted: Wed Feb 20, 2013 4:12 pm
by cgrediaga
Hello,
I have 2 NagiosXI copy and definitions need some hosts and services from one another which would be the procedure recommended
Re: Copy definitions of hosts and services to Another Nagios
Posted: Wed Feb 20, 2013 4:38 pm
by slansing
Can you confirm what you are trying to do? The question was a bit unclear, are you asking how to copy services and hosts from one XI installation to another? If so, you can follow this documentation:
http://assets.nagios.com/downloads/nagi ... nto_XI.pdf
It will guide you through the process of importing configuration files once you have them in the correct directory on the Nagios XI system.
Re: Copy definitions of hosts and services to Another Nagios
Posted: Wed Feb 20, 2013 4:39 pm
by scottwilkerson
the easiest way would be to create a directory under /usr/local/nagios/etc called transfer
then create
Code: Select all
mkdir -p /usr/local/nagios/etc/transfer/hosts /usr/local/nagios/etc/transfer/services
place all your host files in /usr/local/nagios/etc/transfer/hosts
place all your service files in /usr/local/nagios/etc/transfer/services
Code: Select all
chown nagios.nagios -R /usr/local/nagios/etc/transfer/hosts /usr/local/nagios/etc/transfer/services
chmod -R g+w /usr/local/nagios/etc/transfer
import hosts through Configure -> CCM -> Tools -> Import Config Files
import services through Configure -> CCM -> Tools -> Import Config Files