Deployment and Imaging Group

 View Only

Auto notification about Agent service crash via mail and further connection to client 

Nov 14, 2014 01:02 PM


What is required to create such environment, where you will be able to receive mail notifications about Agent service crash from any of available managed endpoints via mail?


This scenario is applicable for SMP 7.1.x and SMP 7.5.x


1. Open SMP Console ⇒ "Reports" ⇒ mouse right click menu on root "Reports" folder and click "Import" ⇒ take attached "List of Agent service(s) crash occurring on managed endpoints.xml" and click "OK".

Import_Report.jpg

Now you will have a report, which will shows all available records about when and what Agent service was crashed on appropriate managed endpoint

ReportCrash_2.jpg


2. You can create a custom right-click menu action to establish Remote Desktop Connection session to required managed endpoint from "List of Agent service(s) crash occurring on managed endpoints" report, where crash of service occurred.

  • Open SMP Console ⇒ "Settings" ⇒ "Console" ⇒ "Right Click Actions" ⇒ mouse right click menu on "User Defined" folder click "Import" ⇒ take attached "Remote Desktop Connection.xml" and click "OK".

Now you have ability to establish RDC session via mouse right click menu on managed endpoint name from "List of Agent service(s) crash occurring on managed endpoints" report

RightClick_Action.jpg

Note: You will need to install right-click action certificate on your Notification Server

  • Open SMP Console ⇒ "Settings" ⇒ "Notification Server" ⇒ click on "Command Line Right-Click action certificate" ⇒ click on "Download Client Registry File" and apply it.

3. You can create your Automation policy to receive notifications messages about "List of Agent service(s) crash occurring on managed endpoints" report data via mail.

  • Open SMP Console ⇒ "Manage" ⇒ "Automation Policies" ⇒ click "New Policy" and set appropriate name.
  • Set appropriate schedule when automation policy will be executed and mail notification message will be sent.
  • Choose Data Source as "Raw SQL Query" and then click "Edit Query" ⇒ specify there this simple SQL Query and click "OK":
SELECT rg.[_ResourceGuid] AS [Machine GUID],[Name] AS [Host Name], [IP Address],[OS Name], [_eventTime] AS [Process Crash Date], [State], [Process],[Source], [Assembly], [Dump]
FROM [dbo].[Evt_AeX_Client_Crash_Detection] rg
JOIN vComputer
ON rg.[_ResourceGuid] = [Guid]
ORDER By [_eventTime]
DESC
  • Click on "Select a Job or Task" and choose "Send automation policy e-mail" ⇒ click "OK".

AutoPolicy_SendMailTaskJob.jpg

 

  • Click on "Edit input parameter" and set required Data Source and custom values and click "Save Changes. I've set them in this way:

InputParameter.jpg

 

Note: To make possible to receive mail notification from Notification Server, you need to specify SMTP Settings on Notification Server.

  • Open SMP Console ⇒ "Settings" ⇒ "All Settings" ⇒ expand "Notification Server" folder ⇒ click on "Notification Server Settings" ⇒ click on "E-Mail" tab and set appropriate SMTP settings.

SMTP_Settings.jpg


 

Thanks,

IP.

Statistics
0 Favorited
1 Views
2 Files
0 Shares
0 Downloads
Attachment(s)
xml file
List of Agent service(s) crash occuring on managed endpoints.xml   9 KB   1 version
Uploaded - Feb 25, 2020
xml file
Remote Desktop Connection.xml   3 KB   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Related Entries and Links

No Related Resource entered.