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?

  • 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

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.

| 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.

| 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.

| 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
| 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.

| 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$


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

| 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:


| improve this answer | |

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