Expected free space after clearing nagios data and hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mmhamdan
Posts: 6
Joined: Sun Jan 07, 2018 4:57 pm

Expected free space after clearing nagios data and hosts

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Expected free space after clearing nagios data and hosts

Post 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
Locked