9

I have a number of Linux webservers for which I'd like to track where disk space is going and keep disk space to a minimum.

Typically I login on SSH and use du to find out where disk space is wasted but this is cumbersome and slow. A visualisation tool like KDirStat would be ideal, but it requires installing an X server at the very least, which kind of defeats the purpose.

Is there any web-based disk space visualizer? I'm open to alternative solutions.

Martijn
  • 346
  • 5
  • 13
  • possible duplicate of [How can I determine what is taking up so much space?](http://serverfault.com/questions/301423/how-can-i-determine-what-is-taking-up-so-much-space) – ewwhite Oct 10 '12 at 11:53

3 Answers3

9

I use ncdu - http://dev.yorhel.nl/ncdu, which has been covered here often. I also recommend a monitoring suite (Monit, Nagios, etc.) that can alert on a preset filesystem utilization percentage... Then use a tool like ncdu to understand what comprises the nearly-full filesystem.

But there's also Philesight, which is a web-based CGI script: http://zevv.nl/play/code/philesight/

Philesight is designed to run on a remote server without graphical user interface.

It presents a pie chart.

enter image description here

ewwhite
  • 194,921
  • 91
  • 434
  • 799
  • To anything coming here in 2019+ check out Duc https://duc.zevv.nl/ it replaced Philesight. – Mint Jan 19 '19 at 07:47
4

You can try to install Cacti on one of your servers.You can monitor disk usage ,cpu usage , memory usage etc.

Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven. And you can add all other servers to it.So you will have everything on one place.

Hope this helps!

alan978
  • 219
  • 1
  • 1
1

phpsysinfo - but you'll have to have php on servers (which you most likely have, since your servers are webservers)

AnonymousLurker
  • 141
  • 1
  • 5