Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I like to know the script which sends email when the server disk space crosses its threshold or critical limit set by me in Windows 2003. Please help.

thanks in advance, Srinivas.

share|improve this question

I have limited experience with Windows, but we monitor all our Windows and Linux servers via SNMP.

On all Windows servers we installed the free SNMP Informant software. SNMP Informant monitors the various server metrics, and makes them available via the SNMP protocol. On the Linux servers we installed Net-SNMP, which does the same.

Then, on a single server we installed Zenoss Core, a free monitoring system that polls each server, saves and graphs the data and sends alerts if it crosses thresholds.

It's a bit much if you're monitoring a single server, but highly recommended if you want to monitor several servers.

share|improve this answer
Ive heard of security concerns with Using SNMP as its not a very secure protocol by default? – Mark Sep 9 '09 at 9:02
Well, there's no encryption and very little authentication built into SNMP. I've simply used the firewall on each server to only allow access from the monitoring server to port 161 on the host. – Martijn Heemels Sep 9 '09 at 9:53
+1 Use a real monitoring system (Zenoss is a good choice, but others will also do), rather than mess around with loads of custom scripts. – sleske Sep 9 '09 at 11:04
Re Security: SNMP is insecure in that it has no access control (at least the commonly deployed version). But as long as SNMP is configured read-only (the default usually) the risk is only in information disclosure. As long as you're behind a firewall, that should not be a problem. – sleske Sep 9 '09 at 11:05

A real simple approach is to set up some alerts in perfmon - you could have the alert fire a script that e-mails you - it could fire something like sendmail to actually do the e-mail passing in arguments from the perfmon alert.

share|improve this answer

Try any of the first few links here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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