Move all added items from one Nagios server to server clone.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
YuKE
Posts: 1
Joined: Fri Jul 06, 2012 4:31 am

Move all added items from one Nagios server to server clone.

Post by YuKE »

Hi.
Sorry for bad english,I hope you understand anyway.

I have a Nagios server that monitoring around 800 units. Servers, switches , printers etc.
The servers is a virtual machine. And for safty I have a clone of it to. But the clone was made a couple of weeks ago so the lates changes isnt stored.

If I wanted to use the clone instead. Which files do I need to move to get all configured items and templates to work? From the old server, to the new( clone) server.

Can i just copy the files templates.cfg, contacts.cfg, contactgroups.cfg, commands.cfg, hosts.cfg, hostgroups.cfg from /var/www/localhost/htdocs/data/nagios?!

But what about the operatingsystem and services settings made in the admin gui? Those files I cant find.


Best regards.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Move all added items from one Nagios server to server cl

Post by agriffin »

All you need to do is move over your configuration files, by default located in /usr/local/nagios/etc, although you might have it somewhere else. If you have any third-party components (e.g. for graphing) those will need to be migrated as well.
YuKE wrote:But what about the operatingsystem and services settings made in the admin gui? Those files I cant find.
I don't think I follow. What kinds of changes did you make from the GUI?

If you need more detailed help I'll need to know more information like your OS, OS version, Nagios version, Nagios installation method (from source, from a package, etc.), and what other projects you're using with Nagios for graphing, reporting, or something else.
Locked