This is possible, but in my experience, you'll need to check out some third party monitoring solutions like Categoric's X-Alert or Netpresenter's Emergency Alert which you can set up to poll the services, and send you an email or sms when something looks a bit screwy.
If you on a Windows platform, you can use Windows Management Instrumentation (WMI) to get a list of running processes. If you don't find 'CrystalAPS.exe' send out an email via SMTP, MAPI, etc. You would have to build this solution yourself, but it would be no cost other than your time.
I'm not a programmer, I'mlooking for a tool to reach my goal , maybe a service property?
. but I'll check WMI ( this is the first time I heard it ).maybe our programmer can arrange me something.thanx for the idea
'Microsoft WMI Scripting V1.2 Library
'C:\WINDOWS\System32\wbem\wbemdisp.TLB
Dim wmServices As WbemScripting.SWbemServices
Dim wmObjectSet As WbemScripting.SWbemObjectSet
Dim wmObject As WbemScripting.SWbemObject
'Microsoft CDO For Exchange 2000 Library
'C:\Program Files\Common Files\Microsoft Shared\CDO\CDOEX.DLL
Dim Message As CDO.Message
Const SMTP_TO As String = "you@yourcompany.com"
Const SMTP_CC As String = ""
Const SMTP_BCC As String = ""
Const SMTP_SENDER_NAME As String = "Joe Employee"
Const SMTP_SENDER_EMAIL As String = "joe.employee@yourcompany.com"
Const SMTP_FROM_NAME As String = "Joe Employee"
Const SMTP_FROM_EMAIL As String = "joe.employee@yourcompany.com"
Const SMTP_SERVER As String = "smtpserver.yourcompany.com"
Const SMTP_MODE As Long = 2 'CDO.CdoSendUsing.cdoSendUsingPort
Const SMTP_PORT As Long = 25
Const SMTP_AUTHENTICATE As Long = 0 'CDO.CdoProtocolsAuthentication.cdoAnonymous
Dim APSFound As Boolean
Set Message = New CDO.Message
With Message
.To = SMTP_TO
.CC = SMTP_CC
.BCC = SMTP_BCC
.Sender = Chr(34) & SMTP_SENDER_NAME & Chr(34) & " <" & SMTP_SENDER_EMAIL & ">"
.From = Chr(34) & SMTP_FROM_NAME & Chr(34) & " <" & SMTP_FROM_EMAIL & ">"
End With
Set wmServices = GetObject("winmgmts:{impersonationLevel=impersonate,(Debug)}"
Set wmObjectSet = wmServices.InstancesOf("Win32_process"
For Each wmObject In wmObjectSet
If wmObject.Name = "CrystalAPS.exe" Then
APSFound = True
Exit For
End If
Next
Message.Subject = "Automated Crystal Enterprise Alert Notification"
If APSFound = True Then
Message.TextBody = "CrystalAPS.exe was found to be running at " & Now
Else
Message.TextBody = "CrystalAPS.exe was not found to be running at " & Now
End If
Message.Send
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.