Hello, I'm using the following macro, to return the event log contents - ${WindowsEventMessages}. The email just has ${WindowsEventMessages} in the body. Is there a particular way to set this up, for the information to be returned?
Wes
what type of alert is it -> trigger tab -> top part? (application? component?)
if you go into email message in alert trigger action, click on insert variable...is that variable available? if so, double click and insert into email message.
preface macro with notes for testing...
i.e.
swinsert-macro: ${<macro inserted by doubleclicking>}
try pasting this component alert action into notepad and saving as .alertaction
then import into trigger action and tweak for your emails, etc...
<?xml version="1.0" encoding="UTF-8"?>
<AlertActions><AlertAction ActionDefID="{43609212-E940-4A7E-9BD2-D1DD092F5A66}" AlertDefID="{DA72A2E7-AC4A-4187-9C1F-BE8AAC5D7A19}" TriggerAction="True" ExecuteIfAcknowledged="True" TimeOffset="0" RepeatInterval="0" StartTime="12:00:00 AM" EndTime="11:59:59 PM" DOW="1,2,3,4,5,6,7" SortOrder="2" ActionType="EMail" Title="Send E-Mail/Page to " Target="To:
CC:
BCC:
SMTPServer:
SMTPPort:25
EnableSSL:False
Format:HTML
" NetObjectType="APM: Component"><Parameter1>Staging - Component ${ComponentName} is ${ComponentStatus}</Parameter1><Parameter2>Alert Time: <t /> ${AlertTriggerTime}
ACK: <t /> ${AcknowledgeURL}
<br />
Component: <t /> ${ComponentName}
App: <t /> ${ApplicationName}
Component Msg: <t /> ${ComponentMessage}
<br /> ${WindowsEventMessages}</Parameter2><Parameter3>"" <></Parameter3><Parameter4></Parameter4></AlertAction></AlertActions>
Hi, currently it’s set to component.
The variable isn’t available. What property do I select, to make the variable available?
I’m unable to import the alert code below. I get an Unable to import the alert error.
Regards,
What version of SAM are you running?
When you use "Insert Variable" button which is available on several places in edit of alert actions, you should get dialog similar to:
WindowsEventMessages macro should be available for APM:Component category (which depends on category that is selected on Trigger condition tab for current alert).