Drive space

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

Drive space

Post by angus »

Hello,

I have an issue with drive space. Attached is the df -h breakdown for my Nagios box. This was installed as an appliance as a VM. I can easily expand the disk but i have read a bit about extending the partition and it seems a bit dodgy with my lack of Linux experience. Are there logs i can clean up to free space? I do not want to lose any history.

Thanks!
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Drive space

Post by lmiltchev »

You can delete old logs in the "/var/log" directory and sub-directories. You can also delete whatever you don't need in the /tmp/" directory. Maybe you have some old backups that you can delete in "/store/backups/nagiosxi".

Check to see what else you have under ""/store/backups/" directory. Most probably you have many mysql and postgres backups there. They are generated by the "/root/scripts/automysqlbackup" and the "/root/scripts/autopostgresqlbackup" script, that are run on cron.

Code: Select all

grep auto /usr/local/nagiosxi/cron/
You can some of the old files.

Any any case, you will need to resize the VM in order to avoid issues in the future. Please, follow the steps outlined in the document below:
http://assets.nagios.com/downloads/nagi ... M_Disk.pdf

Important: Clone your VM prior to re-sizing the VM! Make backups, and transfer them to a different server just in case.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked