anything can be moved off root partition on the Nagios serve
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
anything can be moved off root partition on the Nagios serve
Hello,
I keep getting alerts that the localhost root partition space is running out. I had another thread asking for temporary files that can be removed, which I did, but it only lasted a little while. I have local backup enabled but the backup is stored in a different partition. I am wondering if there are any other files I can move off the root partition as our Linux support team has a policy not to extend root partition space. I seem to remember seeing it somewhere on the web interface that the database is backed up separately and there has been daily weekly monthly backups, and wondering if I can manually move those backups to the backup partition?
Thanks!
I keep getting alerts that the localhost root partition space is running out. I had another thread asking for temporary files that can be removed, which I did, but it only lasted a little while. I have local backup enabled but the backup is stored in a different partition. I am wondering if there are any other files I can move off the root partition as our Linux support team has a policy not to extend root partition space. I seem to remember seeing it somewhere on the web interface that the database is backed up separately and there has been daily weekly monthly backups, and wondering if I can manually move those backups to the backup partition?
Thanks!
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: anything can be moved off root partition on the Nagios s
I wouldn't recommend it, but you could always just turn off the separate database backups. If you post the output of cat /etc/cron.d/nagiosxi, we can see if the backups are running, and how often.
For the sake of clarity, since you asked about moving them, you can certainly do that.
Probably, those backups are located in /store/backups/
For the sake of clarity, since you asked about moving them, you can certainly do that.
Probably, those backups are located in /store/backups/
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
Re: anything can be moved off root partition on the Nagios s
We did not change anything for database backup, so it should be whatever default was:
$ cat /etc/cron.d/nagiosxi
# /etc/cron.d/nagiosxi: crontab fragment for nagiosxi
# Backup MySQL & PostgreSQL Databases
0 7 * * * root /root/scripts/automysqlbackup
0 7 * * * root /root/scripts/autopostgresqlbackup > /dev/null 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_handler.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php >> /usr/local/nagiosxi/var/nom.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php >> /usr/local/nagiosxi/var/reportengine.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php >> /usr/local/nagiosxi/var/dbmaint.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php >> /usr/local/nagiosxi/var/cleaner.log 2>&1
01 * * * * nagios /usr/local/nagiosxi/cron/recurringdowntime.pl >> /usr/local/nagiosxi/var/recurringdowntime.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php >> /usr/local/nagiosxi/var/deadpool.log 2>&1[zhangj3@arqtcenagmonp01 ~]$
$ cat /etc/cron.d/nagiosxi
# /etc/cron.d/nagiosxi: crontab fragment for nagiosxi
# Backup MySQL & PostgreSQL Databases
0 7 * * * root /root/scripts/automysqlbackup
0 7 * * * root /root/scripts/autopostgresqlbackup > /dev/null 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_handler.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php >> /usr/local/nagiosxi/var/nom.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php >> /usr/local/nagiosxi/var/reportengine.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php >> /usr/local/nagiosxi/var/dbmaint.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php >> /usr/local/nagiosxi/var/cleaner.log 2>&1
01 * * * * nagios /usr/local/nagiosxi/cron/recurringdowntime.pl >> /usr/local/nagiosxi/var/recurringdowntime.log 2>&1
* * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php >> /usr/local/nagiosxi/var/deadpool.log 2>&1[zhangj3@arqtcenagmonp01 ~]$
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
Re: anything can be moved off root partition on the Nagios s
Thanks for the reply! I not only want to move the existing backups but also want to change the future backup to not use the root partition, but the backup partition, how do I do that?dwhitfield wrote:I wouldn't recommend it, but you could always just turn off the separate database backups. If you post the output of cat /etc/cron.d/nagiosxi, we can see if the backups are running, and how often.
For the sake of clarity, since you asked about moving them, you can certainly do that.
Probably, those backups are located in /store/backups/
Thanks
Re: anything can be moved off root partition on the Nagios s
To move the automated SQL backups, you would edit this file
and change this path to the new location
then edit this file
and change this path to the new location
Then the next time the script runs, the backups will be in the new location.
Code: Select all
/root/scripts/automysqlbackupCode: Select all
BACKUPDIR="/store/backups/mysql"Code: Select all
/root/scripts/autopostgresqlbackupCode: Select all
BACKUPDIR="/store/backups/postgresql"Be sure to check out our Knowledgebase for helpful articles and solutions!
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
Re: anything can be moved off root partition on the Nagios s
I do not seem to have this file:
/root/scripts/autopostgresqlbackup
/root/scripts/autopostgresqlbackup
-
bolson
Re: anything can be moved off root partition on the Nagios s
You can then just ignore the second suggestion and only modify the automysqlbackup file.
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
Re: anything can be moved off root partition on the Nagios s
Thank you for the help! this thread can be closed.
-
bolson
Re: anything can be moved off root partition on the Nagios s
Closing topic as resolved.
Thank you for using the Nagios Support Forum.
Thank you for using the Nagios Support Forum.