1

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.

TRS-80
  • 2,584
  • 17
  • 16
user19733
  • 11
  • 1

3 Answers3

2

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.

Martijn Heemels
  • 7,728
  • 7
  • 40
  • 64
  • Ive heard of security concerns with Using SNMP as its not a very secure protocol by default? – Mark Sep 09 '09 at 09: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 09 '09 at 09: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 09 '09 at 11:04
  • 2
    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 09 '09 at 11:05
0

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.

Chris W
  • 2,670
  • 1
  • 23
  • 32
0

Try any of the first few links here

Maximus Minimus
  • 8,987
  • 2
  • 23
  • 36