Hello,
I have 2 NagiosXI copy and definitions need some hosts and services from one another which would be the procedure recommended
Copy definitions of hosts and services to Another NagiosXi
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Copy definitions of hosts and services to Another Nagios
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Copy definitions of hosts and services to Another Nagios
the easiest way would be to create a directory under /usr/local/nagios/etc called transfer
then create
place all your host files in /usr/local/nagios/etc/transfer/hosts
place all your service files in /usr/local/nagios/etc/transfer/services
import hosts through Configure -> CCM -> Tools -> Import Config Files
import services through Configure -> CCM -> Tools -> Import Config Files
then create
Code: Select all
mkdir -p /usr/local/nagios/etc/transfer/hosts /usr/local/nagios/etc/transfer/servicesplace 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/transferimport services through Configure -> CCM -> Tools -> Import Config Files