<?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[Differentiating between events]]></title><description><![CDATA[<p dir="auto">Hey People,</p>
<p dir="auto">I have a server i monitor and i would like to have this agent report on about 5 different services. However i noticed that the action that takes place (in my case sending an e-mail) is dependent on the type of Event (in my case SYS_SERVICE_DOWN). Is there a way that i can use that same event (SYS_SERVICE_DOWN) for each of my 5 services that i monitor and make it so they send out a different e-mail dependent on the service that they monitor?</p>
<p dir="auto">I know i can have different events take place such as SYS_THRESHOLD_REACHED or something else for each service but then i will have to keep track of what i assign to each service.</p>
<p dir="auto">Thanks,</p>
]]></description><link>https://forum.netxms.org/topic/946/differentiating-between-events</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:49:03 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/946.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Jul 2010 19:25:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Differentiating between events on Tue, 13 Jul 2010 06:53:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">You can use filter scripts to do advanced filtering. Event SYS_SERVICE_DOWN contains 3 parameters:<br />
1: service name;<br />
2: service object id;<br />
3: service type.<br />
So, for example, if you wish to execute action only for service named "httpd", you can use the following script:</p>
<pre><code>$1 == "httpd"
</code></pre>
<p dir="auto">or, in full form</p>
<pre><code>sub main()
{
   return $1 == "httpd";
}
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4321</link><guid isPermaLink="true">https://forum.netxms.org/post/4321</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 13 Jul 2010 06:53:32 GMT</pubDate></item></channel></rss>