Page 1 of 1
Cleanup and free up server space
Posted: Wed Jul 12, 2017 12:40 pm
by caterpillartce
Hello,
Our Nagios server is showing an alert on local host/root partition. Before asking server guys to allocate more space, is there any directory that we can cleanup, such as temporary files, logs, etc.?
Thanks
Re: Cleanup and free up server space
Posted: Wed Jul 12, 2017 12:46 pm
by dwhitfield
What version of XI are you running? New versions have /etc/logrotate.d/nagiosxi, which could be useful (and of course /etc/logrotate.d/ in general)
Certainly /tmp could be useful.
In an immediate sense, du -hsx * | sort -rh | head -10 could be useful, but just clearing out space is likely to be a temporary measure.
Re: Cleanup and free up server space
Posted: Wed Jul 12, 2017 1:08 pm
by caterpillartce
We are on 5.4.5.
Can I delete these in the /tmp directory? I suppose they were from last time we upgraded Nagios:
see attached screenshot.
Thanks!
Re: Cleanup and free up server space
Posted: Wed Jul 12, 2017 1:15 pm
by dwhitfield
You might want to see if those are backed up elsewhere, but yes.