Code: Select all
du -h /var/lib/mysql/nagios/If you just plain need more disk space, you can also try removing:
/var/spool/mail/root
and older log files under: /var/log/
Code: Select all
du -h /var/lib/mysql/nagios/I have cleared out all tables in the nagios db. When I run the above command, it only shows 660k in use. When I run it for the other tables, I don't see anything that would be taking up this much space:mguthrie wrote:You can safely truncate anything in the nagios database, as that contains status and historical information, but no configuration information. You can get an idea as to how big the database is by running:
Code: Select all
du -h /var/lib/mysql/nagios/
Code: Select all
find /var -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'Found one file that was 50M. Search again for anything over 20M, and I'm only seeing two other files.scottwilkerson wrote:This could be logs or something. You can run the following to find all files over 50MCode: Select all
find /var -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'