Cleanup and free up server space

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

Cleanup and free up server space

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

Re: Cleanup and free up server space

Post 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.
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

Re: Cleanup and free up server space

Post 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!
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Cleanup and free up server space

Post by dwhitfield »

You might want to see if those are backed up elsewhere, but yes.
Locked