Home > SSW Standards > Developer Installation Network Setup > SSW Using Performance Monitor
Overview
Performance monitor checks the state of the system
periodically and can perform an action, when criteria are met. Performance
monitor is most useful when it is configured to send an email.
Installation
Enable disk performance counters for logical drives

Figure 1 The default "Disk Performance Counters" for Windows 2000 has physical on (but logical is off)
You need to check what "Disk Counters" are running when Windows starts. To be able to monitor the free disk space, you need the logical disk performance counters enabled.
Note: They are enabled by default on Windows XP. If using Windows 2000 run the following commands in a command prompt.
Enable disk performance counters for logical drives (the following alerts need this on)
DISKPERF YV
This will require the computer to be rebooted.
Enable SMTP Service
- Right-click My Computer > Manage
- Expand Services and Applications
- Click Services
- Right-click Simple Mail Transfer Protocol > Properties
- Change startup type to Automatic
- Start the service if it is not running
Install the VB Script to send email
- Make a new folder on the Hard Drive
- For Servers C:\DataPerformanceMonitor
- For Workstations C:\Data<username>\DataPerformanceMonitor
- Make these 2 files get latest version of the code from the URL, change the file type from .txt to .cmd
before use.
Create an Alert
- Open Performance Monitor - from the Start menu > Programs > Administrative tools > Performance
- Expand Performance logs and alerts
- Right-click Alerts
- Choose New Alert Settings...
- Enter an Alert name 'System Check'
- Click Add to add counters
- Add the following counters
Useful counters
| Group | Counter | Alert When |
| Paging File | % Usage (Total) | Over 85 |
| Logical Disk | Free Megabytes | Under 200 |
| Memory | Available Mbytes | Under 1 |
- Change the sample data interval to every 5 minutes

- Click the Action Tab
- Tick Run this Program
- Browse for the .cmd file

- Press command line arguments
- uncheck Single argument string
- check Text message
- enter the email address to send the alert to in the Text message box
- for servers enter 'ServerEvents@s*w.com.au'

NOTE: If a performance value has been reached, you will get a email
every time the interval is reached.
e.g. So if the hard drive was full on Friday afternoon, on Monday
morning you would be greeted with thousands of emails to start the
working week.
Now we want to make sure the alerts keep working on a reboot
- Select the Schedule tab
- Choose 'At:' and make sure the current time and date are entered
- Under 'Stop scan' select 'After'
- enter 100,000 in the number and select days as the units
- check 'Start a new scan'
NB: This makes sure that the alert starts when the computer restarts

- Start the Alert by right-clicking on the new alert and choosing start (if it is not running automatically)

Enable alerts for Mirrors

References
HOW TO: Add Error Logging for Low Disk Space in System Monitor in Windows 2000
http://support.microsoft.com/?kbid=299921
Acknowledgements
JV 17/02/2004