Nagios Backup

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
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Nagios Backup

Post by ziedmahjoub »

Hi Nagios team ,

Is there any software to backup my nagios configuration ? Because maybe we change our main server .

If not , having a copy of the cfg files (i mean files in /usr/local/nagios/etc/objects) , is enough to backup your Nagios configuration ?

Thanks
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios Backup

Post by jdalrymple »

As long as you don't have any add-ons like ndoutils or nagiosql, you have only 2 things really special for your config, the directory with all the configs (nagios.cfg, commands.cfg, myhost.cfg, myservice.cfg, etc) and then the perfdata if you have it and care to take it with you.

Obivously it would be best to keep your old server together until you've crated a safe and complete plan to get all your data moved. Test it, document it, then do it.
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: Nagios Backup

Post by ziedmahjoub »

jdalrymple wrote:As long as you don't have any add-ons like ndoutils or nagiosql, you have only 2 things really special for your config, the directory with all the configs (nagios.cfg, commands.cfg, myhost.cfg, myservice.cfg, etc) and then the perfdata if you have it and care to take it with you.
myhost.cfg and myservice.cfg are in nagios 3.x right ?
for my nagios 4.x i have windows.cfg , ok so for the configs its this the directory /objects/

and for the perfdata, i don't know in what directory it is .

thanks
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios Backup

Post by jdalrymple »

ziedmahjoub wrote:and for the perfdata, i don't know in what directory it is .
It is likely that you don't even use perfdata. Do you use an add on product such as pnp4nagios or mrtg to view the perfdata, or are you just using Nagios for Monitoring and Alerting?

As for the names of the .cfg files, it's irrelevant as long as they're specified properly in nagios.cfg using the following directives:

Code: Select all

cfg_file=/somepath/somefile1.cfg
cfg_file=/somepath/somefile2.cfg
cfg_dir=/somepath/conf.d/
Make sense?
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: Nagios Backup

Post by ziedmahjoub »

Its ok thanks , but maybe i'm planning to install mrtg . For now no problem

this thread can be closed
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Backup

Post by abrist »

Lockin' her up!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked