Page 1 of 1

Expected free space after clearing nagios data and hosts

Posted: Wed Jan 10, 2018 3:13 am
by mmhamdan
Hello everyone hope you are doing fine . i have inquire about storage space, we were having around 8000 hosts on our Nagios. we decided to remove all hosts and clear all the exists data so we used default restore script and found that hosts are gone but our storage didn't increase.

My question is there another action i should do since i don't need any of my old files, all i want is to be looked like new one.

Re: Expected free space after clearing nagios data and hosts

Posted: Wed Jan 10, 2018 12:55 pm
by dwhitfield
I would recommend re-installing the OS if that is what you want, but you can get rid of all the nagios.log archives.

Getting rid of all the database stuff is going to be more difficult because truncating or dropping tables is not going to put you back in a default state. You'll need to run select piece of the install script. It's going to be a major pain.

As for the space issue, what's the output of the second command after running these two in order:

Code: Select all

cd /
du -hsx * | sort -rh | head -10