Export > import

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
pouda
Posts: 105
Joined: Wed Sep 14, 2011 9:47 am

Export > import

Post by pouda »

Hello,

I have to configure a new XI servers and i already configure lot of hosts to another XI servers. I would know if i can export existing hosts from the old to the new XI servers without created once again all services etc ... if yes .. please can you tell me the procedure that i've to follow ...

Thx you very much.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Export > import

Post by mguthrie »

You can probably just download your most recent configuration snapshot tarball and import those config files onto the new server. There's probably be a few additional steps you'd have to take, for example, if you were monitoring VMware, but that'd probably get you 90% of the way.
pouda
Posts: 105
Joined: Wed Sep 14, 2011 9:47 am

Re: Export > import

Post by pouda »

Hello and thanks for your quick answer,

i will not have problem with Nagios server name and ip adress or something like that ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Export > import

Post by scottwilkerson »

pouda wrote:Hello and thanks for your quick answer,

i will not have problem with Nagios server name and ip adress or something like that ?
You can choose which file you want to import if you untar the snapshot and place the configs in a subdirectory of /usr/local/nagios/etc

Then Configure -> CCM -> Tools -> Import Config Files
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Export > import

Post by benhank »

thanks for asking this question mate, I was curios about this too.
can I tag long on this and ask if I wanted to replicate nagios a on nagios b what files and directories would you say I should move?
and could I do this through a straight copy from filezilla, and would I have to shut down the nagios services first?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Export > import

Post by scottwilkerson »

benhank wrote:thanks for asking this question mate, I was curios about this too.
can I tag long on this and ask if I wanted to replicate nagios a on nagios b what files and directories would you say I should move?
and could I do this through a straight copy from filezilla, and would I have to shut down the nagios services first?
If you want a complete copy, you should follow the following doc
http://library.nagios.com/library/produ ... -nagios-xi
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
pouda
Posts: 105
Joined: Wed Sep 14, 2011 9:47 am

Re: Export > import

Post by pouda »

we are ok that i don't want backup and restore the same server... but i would like to move hosts and services from one Nagios server to another one... :)
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Export > import

Post by benhank »

thanks scott but could i do a straight copy of the files with filezilla? and would i have to shut down the services?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Export > import

Post by scottwilkerson »

benhank wrote:thanks scott but could i do a straight copy of the files with filezilla? and would i have to shut down the services?
benhank,
Don't do this, not a good idea. They will not get imported into XI database and will get overwritten on the next apply configuration.
pouda wrote:we are ok that i don't want backup and restore the same server... but i would like to move hosts and services from one Nagios server to another one... :)
pouda,
You can do this with the process outlined above:
scottwilkerson wrote:You can choose which file you want to import if you untar the snapshot and place the configs in a subdirectory of /usr/local/nagios/etc

Then Configure -> CCM -> Tools -> Import Config Files
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Export > import

Post by benhank »

thanks, man you guys save my job on a daily basis.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked