Page 1 of 2

Export > import

Posted: Tue Apr 24, 2012 10:33 am
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.

Re: Export > import

Posted: Tue Apr 24, 2012 10:37 am
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.

Re: Export > import

Posted: Tue Apr 24, 2012 11:42 am
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 ?

Re: Export > import

Posted: Tue Apr 24, 2012 12:48 pm
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

Re: Export > import

Posted: Tue Apr 24, 2012 2:00 pm
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?

Re: Export > import

Posted: Tue Apr 24, 2012 3:10 pm
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

Re: Export > import

Posted: Tue Apr 24, 2012 3:46 pm
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... :)

Re: Export > import

Posted: Tue Apr 24, 2012 3:50 pm
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?

Re: Export > import

Posted: Tue Apr 24, 2012 4:05 pm
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

Re: Export > import

Posted: Wed Apr 25, 2012 10:22 am
by benhank
thanks, man you guys save my job on a daily basis.