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
Nagios Backup
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios Backup
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.
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
myhost.cfg and myservice.cfg are in nagios 3.x right ?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.
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
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?ziedmahjoub wrote:and for the perfdata, i don't know in what directory it is .
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/-
ziedmahjoub
- Posts: 142
- Joined: Fri Jan 16, 2015 5:22 am
Re: Nagios Backup
Its ok thanks , but maybe i'm planning to install mrtg . For now no problem
this thread can be closed
this thread can be closed
Re: Nagios Backup
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.
"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.