SAMPLE: SmAlert.exe Extends PerfMons Alert Mechanism

ID: Q215495


The information in this article applies to:


SUMMARY

SmAlert.exe is a sample that extends the usefulness of the PerfMon tool by storing PerfMon alerts in a database.


MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

SmAlert.exe
Release Date: Mar-01-1999

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services


File Name Size
AlertMsg.cpp 13885
AlertMsg.h 3564
AlertMsg.rgs 648
dlldata.c 841
R1AlertMod.aps 4216
R1AlertMod.cpp 4449
R1AlertMod.dsp 12976
R1AlertMod.dsw 746
R1AlertMod.h 14030
R1AlertMod.idl 1706
R1AlertMod.ncb 197632
R1AlertMod.opt 59904
R1AlertMod.plg 1263
R1AlertMod.rc 2934
R1AlertMod.rgs 183
R1AlertMod.tlb 2644
R1AlertModCP.h 1693
R1AlertModps.def 252
R1AlertModps.mk 490
R1AlertMod_i.c 1248
R1AlertMod_p.c 13889
resource.h 548
StdAfx.cpp 315
StdAfx.h 1164
smartAlert.mdb 112640
smartAlert.pma 646
Class1.cls 1051
Form1.frm 6245
Form2.frm 4655
frmAbout.frm 12219
frmAbout.frx 778
Module1.bas 2061
MSSCCPRJ.SCC 193
Project1.vbp 1488
Project1.vbw 221

The following is a description of the Smart Alert Architecture:
  1. PerfMon has a list of counters that it monitors. When a counter is alerted, PerfMon sends the counter message to a program AlertMain.


  2. AlertMain forwards the message to the ATL server R1AlertLog.


  3. The R1AlertLog server stores the non-redundant counter data in a SmartAlert database and notifies another program, called SmartViewer, when new data is available.


  4. When SmartViewer gets a notification event from R1AlertLog, it displays the alert messages stored in the SmartAlert database. Instead of getting thousands of disk full messages, you have just three: the first, the most extreme (lowest free disk space), and the last message.


A complete description of this sample can be found in the March/April 99 edition and on the following Web page:
http://msdn.microsoft.com/developer/news/devnews/default.htm
After extracting the files, you must build the R1AlertMod component and the AlertMain subproject. You must move the SmartAlert.mdb file to the c:\ directory or change the location specified in AlertMsg.h file.

© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Rick Anderson, Microsoft Corporation

Additional query words:


Keywords          : kbfile kbnetwork kbsample kbADO210 kbDeployment kbMemory kbMMC kbNTOS400 kbOOP kbRemote kbRouting kbSDKDAO kbSDKDataAc kbSDKPlatform kbServer kbService kbSysSettings kbMiscTools kbVBp600 kbTrafficControl kbSampleProd kbNetMon kbNetTrace 
Version           : WINDOWS:2.1,2.5; winnt:4.0
Platform          : WINDOWS winnt 
Issue type        : 

Last Reviewed: March 10, 1999