<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How can I put original message inside of email alert]]></title><description><![CDATA[<p dir="auto">In the below example I am able to send email after match condition. But How can I put original message inside of email alert.</p>
<p dir="auto">For example : I want to send below original syslog text to email ... </p>
<p dir="auto">24.04.2015 12:22:15 1 5 system,error,critical login failure for user testUser from 11.2.33.41 via ssh</p>
<p dir="auto">We can extract username and login method from the syslog message, and pass it as parameters to an event with the following rule:<br />
&lt;match&gt;system,error,critical login failure for user (.*) from .* via (.*)&lt;/match&gt;<br />
&lt;event params="2"&gt;10000&lt;/event&gt;</p>
]]></description><link>https://forum.netxms.org/topic/5267/how-can-i-put-original-message-inside-of-email-alert</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:25:28 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5267.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Oct 2017 12:11:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can I put original message inside of email alert on Wed, 04 Oct 2017 06:56:52 GMT]]></title><description><![CDATA[<p dir="auto">I format mail body with script, event calls mail action and mail action is calling script with %[scriptname] in message text.</p>
<p dir="auto">if you want event param 2 use $event-&gt;parameters[2] in script</p>
<p dir="auto">Create a string variable with all the text you want then just return it and it will use that for the mail text, for line break use \n</p>
<p dir="auto">If you are scripting you have access to these to get the data you want also:<br />
<a href="https://wiki.netxms.org/wiki/NXSL_Function_Reference" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL_Function_Reference</a></p>
]]></description><link>https://forum.netxms.org/post/23142</link><guid isPermaLink="true">https://forum.netxms.org/post/23142</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Wed, 04 Oct 2017 06:56:52 GMT</pubDate></item></channel></rss>