Page 1 of 1

Nagios XI database backup

Posted: Tue Dec 29, 2015 6:46 am
by ranjitw
Hi ,

What is the best way to take a full backup of Nagios database ?

If I want to take a backup of 1000 servers(12k services) with 3 months of historic data ( alerts and QOS ) what would be the approximate size of the backup file ?

Where would be the backup file created ?

Re: Nagios XI database backup

Posted: Tue Dec 29, 2015 9:58 am
by hsmith
We have a document regarding our backup procedure here: https://assets.nagios.com/downloads/nag ... ios-XI.pdf

I strongly recommend you use this one. The size is going to vary a lot depending on your environment. The size of one of my backups is around 90-180 MB.

Re: Nagios XI database backup

Posted: Tue Dec 29, 2015 11:24 pm
by ranjitw
Hi ,

What is the size of your environment ? Is it for 1000 servers in your environment it took 90-180 MB?

Does this backup include performance data as well ? If I need to take backup of the performance data what would be size of it.

Re: Nagios XI database backup

Posted: Wed Dec 30, 2015 12:07 pm
by lmiltchev
What is the size of your environment ? Is it for 1000 servers in your environment it took 90-180 MB?
I am not sure what's the size of hsmith's environment but most likely it is not very large. On one of my test Nagios XI boxes for example, I have 30 hosts and approximately 400 services, and the size of the backup is around 280MB (this includes the perfdata). Obviously your backup will be bigger.
Does this backup include performance data as well ? If I need to take backup of the performance data what would be size of it.
Yes, this includes the perfdata.

Re: Nagios XI database backup

Posted: Mon Jan 04, 2016 3:21 am
by ranjitw
Hi ,

When I backup using the backup_xi.sh script will it backup also the performance information ?

Where could I set the retention period for ( event or Alarm ) and (Performance and trend ) data.

Re: Nagios XI database backup

Posted: Mon Jan 04, 2016 12:12 pm
by lmiltchev
When I backup using the backup_xi.sh script will it backup also the performance information ?
Yes, the backup script backs up the perfdata.
Where could I set the retention period for ( event or Alarm ) and (Performance and trend ) data.
Go to Admin->Performance Settings->Databases, specify the desired values, and click on "Update Settings".