Copy definitions of hosts and services to Another NagiosXi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cgrediaga
Posts: 14
Joined: Wed Jul 11, 2012 1:40 am

Copy definitions of hosts and services to Another NagiosXi

Post by cgrediaga »

Hello,

I have 2 NagiosXI copy and definitions need some hosts and services from one another which would be the procedure recommended
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

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked