Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have about 70 servers and I need to keep an eye on their disk space usage. I don't need the information to be real time. I was thinking of running a script daily or having a scheduled task run to collect the disk information and save it to a text file or something.

What would be the best way to do this? How?

share|improve this question
    
It's hard to believe you have 70 servers and no monitoring system that can give you that information already (as well as a whole lot more). –  John Gardeniers Jul 6 '11 at 22:15
    
Thanks everyone of their suggestions. –  Jake Jul 7 '11 at 11:11

7 Answers 7

up vote 1 down vote accepted

Have a look into WMI. You could write a script which uses WMI to monitor the disk space but there are also several programs which can do it.

share|improve this answer

Might look like overkill at first glance, but this kind of feature is typically implemented in network monitoring systems (like Nagios) where you could define state thresholds and e-mail notifications and a bunch of other parameters to monitor as well.

share|improve this answer
4  
With 70 servers something like Nagios is highly recommended for other reasons besides disk space monitoring. –  TheLQ Jul 6 '11 at 7:00

I am assuming from your tags that these are Windows 2003 servers? If your experience is entirely Windows based, configuring Nagios in Linux might be a jump (I don't know the other open source monitoring systems listed by Kamil so not sure what OS they run on).

FAN (Fully Automated Nagios) might be a good option. Install it on some old hardware directly from an ISO. Has a couple of built-in popular GUI add-ons like Centreon and configuration scripts to get you started, including ones for checking disk space.

I'd second TheLQ as well, with seventy servers you need a monitoring tool, otherwise apart from disk space, how do you keep track of patches, anti-virus updates, cpu load, memory consumption and general hardware failures? Nagios can tie in easily with email alerts and (especially if your systems are quite homogeneous) you can probably get yourself to a place where you are alerted about the more common server problems as soon as they occur or even before.

share|improve this answer

Syneticon-dj is right. You should defenetly use monitoring system.

Here are some decent open source systems:

  • www.opennms.org
  • www.pandorafms.org
  • www.nagios.org
  • munin-monitoring.org
  • ganglia.sourceforge.net

and some commercial ones:

  • www.solarwinds.com
  • www.veraxsystems.com
  • www.spiceworks.com
  • www.whatsupgold.com
share|improve this answer

If you're just after simple disk monitoring and you're an all windows house you might look into Spiceworks. Its free and pretty configurable. It'd be relatively easy to clear out any monitor settings except what you want.

share|improve this answer

If you are looking only for historical disk space tracking (rather than full monitoring), you can use freespace.exe from Pathsolutions: http://www.pathsolutions.com/support/tools.asp

Will output data in several different formats (eg CSV, TSV, MRTG):

F:\>freespace -c \\myserver\c$

07/11/2011,16:08:34,\\myserver\c$,15726702592,5935878144,37.74%

I use this tool to keep long term (ie several years) stats on all of my servers.

share|improve this answer

You can use virtually any website monitoring service for that, e. g. the free plans from pingdom or alertfox. All you need is to have a asp.net or php page on your server:

http://blog.alertfox.com/2011/01/monitoring-disk-space-and-other-status.html

share|improve this answer

protected by Iain Jan 31 '12 at 12:58

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.