Nagios daily/monthly/weekly backups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Nagios daily/monthly/weekly backups

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios daily/monthly/weekly backups

Post 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.
Former Nagios employee
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Re: Nagios daily/monthly/weekly backups

Post by prateekagr1988 »

I don't see the option in Admin. Is it for Nagiox XI 2012R1.2 ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios daily/monthly/weekly backups

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Re: Nagios daily/monthly/weekly backups

Post 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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Nagios daily/monthly/weekly backups

Post by WillemDH »

Hey,

You should not save your backups on the Nagios XI server itself imho.

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Re: Nagios daily/monthly/weekly backups

Post 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.
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Re: Nagios daily/monthly/weekly backups

Post by prateekagr1988 »

Additionally, is there an option for logs rotation ?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios daily/monthly/weekly backups

Post 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.
Former Nagios employee
prateekagr1988
Posts: 62
Joined: Fri Sep 26, 2014 7:21 pm

Re: Nagios daily/monthly/weekly backups

Post by prateekagr1988 »

Okay.. what exactly would the snippet do ?

Also, any suggestions on the housekeeping of backups ?
Locked