Page 1 of 1
Nagios Backup
Posted: Mon Apr 06, 2015 8:15 am
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
Re: Nagios Backup
Posted: Mon Apr 06, 2015 8:57 am
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.
Re: Nagios Backup
Posted: Mon Apr 06, 2015 10:00 am
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
Re: Nagios Backup
Posted: Mon Apr 06, 2015 10:52 am
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?
Re: Nagios Backup
Posted: Mon Apr 06, 2015 11:12 am
by ziedmahjoub
Its ok thanks , but maybe i'm planning to install mrtg . For now no problem
this thread can be closed
Re: Nagios Backup
Posted: Mon Apr 06, 2015 11:23 am
by abrist
Lockin' her up!