<?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[Situation]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">i have to create a situation in which when an interfaces goes down, no alarm is sent for the relative node down.</p>
<p dir="auto">I have to do this for many interfaces and many nodes.</p>
<p dir="auto">I use the procedure exposed in NetXms Manual, but i have a doubt for the filtering script.</p>
<p dir="auto">Suppose we have node A with interface A and node B with interface B.</p>
<p dir="auto">I use a general script like this (in the template "show alarm when node is down")</p>
<p dir="auto">sub main()<br />
{<br />
s = FindSituation("ServiceStatus", %n);<br />
if (s != NULL)<br />
{<br />
if (s-&gt;status == "failed")<br />
return false; // Don't match rule<br />
}<br />
return true; // Match rule<br />
}</p>
<p dir="auto">and in "show alarm when interfaces is down" i set this value:</p>
<p dir="auto">Situations object:ServiceStatus<br />
Instance:%n<br />
and in Attributes:<br />
                       name=status<br />
                       value=failed.</p>
<p dir="auto">Can i use the previous general script or i Have to create specific script like the following?</p>
<p dir="auto">in "show alarm when node is down" set source=nodeA and insert the following script:</p>
<p dir="auto">sub main()<br />
{<br />
s = FindSituation("ServiceStatus", InterfaceA);<br />
if (s != NULL)<br />
{<br />
if (s-&gt;status == "failed")<br />
return false; // Don't match rule<br />
}<br />
return true; // Match rule<br />
}</p>
<p dir="auto">and in "show alarm when interface is down" set source= interface A and situations:</p>
<p dir="auto">Situations object:ServiceStatus<br />
Instance:InterfaceA<br />
and in Attributes:<br />
                       name=status<br />
                       value=failed.</p>
<p dir="auto">(obviously i repeat this procedure for interface B and node B).</p>
<p dir="auto">Thank you for help.</p>
]]></description><link>https://forum.netxms.org/topic/1478/situation</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:38:38 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1478.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Dec 2011 09:23:52 GMT</pubDate><ttl>60</ttl></channel></rss>