Page 1 of 2
Nagios daily/monthly/weekly backups
Posted: Thu Oct 16, 2014 3:17 pm
by prateekagr1988
Please suggest how do we change the location of Nagios daily/monthly/weekly backups.
By default, I understand it places the backups in /store, which is mounted in root file system.
Kindly suggest how can the backups be generated directly in non-root filesystem.
Re: Nagios daily/monthly/weekly backups
Posted: Thu Oct 16, 2014 4:00 pm
by tmcdonald
Please go to Admin -> Scheduled Backups and click the Local tab to change the local backup settings. There are also FTP and SSH options available if you wish to use them.
Re: Nagios daily/monthly/weekly backups
Posted: Fri Oct 17, 2014 7:46 am
by prateekagr1988
I don't see the option in Admin. Is it for Nagiox XI 2012R1.2 ?
Re: Nagios daily/monthly/weekly backups
Posted: Fri Oct 17, 2014 8:22 am
by lmiltchev
Actually, the Scheduled Backups component was added in Nagios XI 2014R1.0. The "auto-backup" scripts that run on a cron job are placed in "/root/scripts/". You can open the "automysqlbackup" or "autopostgresqlbackup" scripts in a text editor and modify the path to the backup directory if you need to.
Hope this helps.
Re: Nagios daily/monthly/weekly backups
Posted: Mon Dec 08, 2014 3:19 am
by prateekagr1988
Hi,
The suggestion definitely helped. Thansk a lot !
Could you suggest if there are any temporary files being created in Nagios XI, that can be deleted to save space ?
As there are daily/weekly/monthly backups being created, is it feasible to validate the monthly backups if they are correctly generated.
So that we can eventually clean-up the older daily/weekly backups to save disk space.
Re: Nagios daily/monthly/weekly backups
Posted: Mon Dec 08, 2014 3:49 am
by WillemDH
Hey,
You should not save your backups on the Nagios XI server itself imho.
Grtz
Willem
Re: Nagios daily/monthly/weekly backups
Posted: Mon Dec 08, 2014 3:52 am
by prateekagr1988
Hi,
I agree. We are planning to move the backups to a different location.
As of now, the backups have occupied majority of the disk space, and we need to perform some housekeeping.
It would be really helpful if you could share your suggestions.
Re: Nagios daily/monthly/weekly backups
Posted: Mon Dec 08, 2014 6:39 am
by prateekagr1988
Additionally, is there an option for logs rotation ?
Re: Nagios daily/monthly/weekly backups
Posted: Mon Dec 08, 2014 5:39 pm
by tmcdonald
prateekagr1988 wrote:Additionally, is there an option for logs rotation ?
We do use logrotate, but there is no option to configure it in the web interface. The config is quite small:
/etc/logrotate.d/nagiosxi
Code: Select all
/usr/local/nagiosxi/var/*log {
missingok
notifempty
}
then there are others for mysqld, httpd, etc as well.
Re: Nagios daily/monthly/weekly backups
Posted: Tue Dec 09, 2014 12:04 am
by prateekagr1988
Okay.. what exactly would the snippet do ?
Also, any suggestions on the housekeeping of backups ?