Nagios XI back-ups advice

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
anil_kumarv
Posts: 50
Joined: Thu Oct 17, 2013 2:00 am

Nagios XI back-ups advice

Post by anil_kumarv »

We have recently enabled Nagios backups. But for some reason daily mysql backups under nagios dir are taking lot of space and are not zipped. Example below :

path : /store/backups/mysql/daily/nagios

[root@NagiosXI nagios]# ls -l
total 5533120
-rw-r--r-- 1 root root 85077832 Dec 1 2013 nagios_2013-12-01_07h00m.Sunday.sql.gz
-rw-r--r-- 1 root root 89799234 Dec 2 2013 nagios_2013-12-02_07h00m.Monday.sql.gz
-rw-r--r-- 1 root root 91895116 Dec 3 2013 nagios_2013-12-03_07h00m.Tuesday.sql.gz
-rw-r--r-- 1 root root 91817287 Dec 4 2013 nagios_2013-12-04_07h00m.Wednesday.sql.gz
-rw-r--r-- 1 root root 5307314176 Sep 5 07:03 nagios_2014-09-05_07h00m.Friday.sql

As you can see the latest file(nagios_2014-09-05_07h00m.Friday.sql) generated is ~5.0G. Anyway we can have the daily file that is being generated zipped by default.
In /root/scripts/automysqlbackup script, COMP=gzip, but still the daily file is not zipped.

-- Anil
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI back-ups advice

Post by lmiltchev »

We have recently enabled Nagios backups.
What do you mean? These backups should be enabled by default. They are run on a cron.

Code: Select all

grep auto /etc/cron.d/nagiosxi
Have you modified the "/root/scripts/automysqlback" script?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Nagios XI back-ups advice

Post by BanditBBS »

lmiltchev wrote:
We have recently enabled Nagios backups.
What do you mean? These backups should be enabled by default. They are run on a cron.

Code: Select all

grep auto /etc/cron.d/nagiosxi
Have you modified the "/root/scripts/automysqlback" script?

I have to disagree with that comment. ever since 2014 came out backups have not been automatically scheduled on any of my 2014 servers, here or the old job. Fresh install and 2012 upgrade to 2014 saw backups not enabled by default, even though they were on the 2012 server.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios XI back-ups advice

Post by sreinhardt »

I have to disagree with that comment. ever since 2014 came out backups have not been automatically scheduled on any of my 2014 servers, here or the old job. Fresh install and 2012 upgrade to 2014 saw backups not enabled by default, even though they were on the 2012 server.
If you haven't already, aside from this post, this would have been great to know about. As far as we have known and tested, backups should be working. Want to start a new thread for that one, so as not to hijack anil's?

As for OP, have you checked the size of your current mysql databases compared with the gziped files? Also have you tried gunzipping them and seeing if they inflate to a larger size?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked