Microsoft Knowledge Base Email Alertz

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

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 215495 - Last Review: July 11, 2005 - Revision: 1.5

SAMPLE: SmAlert.exe Extends PerfMons Alert Mechanism

This article was previously published under Q215495

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 Download Center:
Smalert.exe (http://download.microsoft.com/download/ado/sample/2.1/w9xnt4/en-us/smalert.exe)

Collapse this tableExpand this table
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.
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.


APPLIES TO
  • Microsoft ActiveX Data Objects 2.1
  • Microsoft Platform Software Development Kit-January 2000 Edition
  • Microsoft Data Access Components 2.5
  • Microsoft Windows NT 4.0
Keywords: 
kbdownload kbdeployment kbfile kbmemory kbmisctools kbnettrace kbnetwork kboop kbremoteprog kbrouting kbsample kbsamplepro kbserver kbservice kbsyssettings kbtrafficcontrol KB215495
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please