Page 1 of 1
anything can be moved off root partition on the Nagios serve
Posted: Fri Aug 04, 2017 7:15 am
by caterpillartce
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!
Re: anything can be moved off root partition on the Nagios s
Posted: Fri Aug 04, 2017 10:38 am
by dwhitfield
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/
Re: anything can be moved off root partition on the Nagios s
Posted: Fri Aug 04, 2017 11:03 am
by caterpillartce
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 ~]$
Re: anything can be moved off root partition on the Nagios s
Posted: Fri Aug 04, 2017 11:07 am
by caterpillartce
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 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?
Thanks
Re: anything can be moved off root partition on the Nagios s
Posted: Fri Aug 04, 2017 12:18 pm
by tgriep
To move the automated SQL backups, you would edit this file
and change this path to the new location
then edit this file
Code: Select all
/root/scripts/autopostgresqlbackup
and change this path to the new location
Code: Select all
BACKUPDIR="/store/backups/postgresql"
Then the next time the script runs, the backups will be in the new location.
Re: anything can be moved off root partition on the Nagios s
Posted: Fri Aug 04, 2017 2:21 pm
by caterpillartce
I do not seem to have this file:
/root/scripts/autopostgresqlbackup
Re: anything can be moved off root partition on the Nagios s
Posted: Fri Aug 04, 2017 2:44 pm
by bolson
You can then just ignore the second suggestion and only modify the automysqlbackup file.
Re: anything can be moved off root partition on the Nagios s
Posted: Mon Aug 07, 2017 8:09 am
by caterpillartce
Thank you for the help! this thread can be closed.
Re: anything can be moved off root partition on the Nagios s
Posted: Mon Aug 07, 2017 9:09 am
by bolson
Closing topic as resolved.
Thank you for using the Nagios Support Forum.