cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 14

Advance Alerting Variables for Windows Services?

Jump to solution

Hello,

We just started monitoring some Windows Services and I was wondering if there was a variable that I could use in the alert email to note which service is being alerted on.  I found the variable for the component name and status, but not the "Monitored Service" or "Service Host Process".  Is there a built in way to do it?

Services-Alert.jpg

Alert Email:

Application Name: ${ApplicationName}

Application Status: ${Application Status}

Component Name: ${ComponentName}

Status: ${ComponentStatus}

Service Name: ${????}

Process Name: ${????}

Node Name: ${NodeName}

Date/Time: ${DayofWeek}, ${AlertTriggerTime}

Reference:

Alert Name: ${AlertName}

Thanks!

Tags (3)
0 Kudos
1 Solution
Product Manager
Product Manager

Have you tried using the ${ProcessName} macro?

View solution in original post

0 Kudos
5 Replies
Level 13

And for the first one you could try to use custom SQL macro:
Service Name: ${SQL:SELECT cts.Value FROM APM_Component c INNER JOIN APM_ComponentTemplateSetting cts ON c.TemplateID = cts.ComponentTemplateID AND cts.[Key] = 'ServiceName' WHERE c.ID =  ${ComponentID}}

Product Manager
Product Manager

Have you tried using the ${ProcessName} macro?

View solution in original post

0 Kudos

The macro ${ProcessName} worked.  Thanks!  Is there a Process Status macro?  I tried ${ProcessStatus} and it just showed up as "${ProcessStatus}" in the email.

0 Kudos

The ${ComponentStatus} macro is universal and works across all component monitor types.

I will check it out and see how it works.

Thanks

0 Kudos