<?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[Problem with Node-Down-Configuration using situation]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I have been trying to trigger a SYS_NODE_DOWN event by checking if another Node is not down. I have implemented as per manual and various other posts, but still cannot get it to work.</p>
<p dir="auto">I have attempted to do this by creating a situation, as per thread <a href="https://www.netxms.org/forum/configuration/node-down-config-question/" rel="nofollow ugc">https://www.netxms.org/forum/configuration/node-down-config-question/</a>, however I  want to report only if nodeB is not down (nodeB being the remote router, and NodeA is a device on the remote network).</p>
<p dir="auto">In a previous thread, Victor stated that you should be able to see situation, instance and attribute from console <a href="https://www.netxms.org/forum/configuration/action-to-return-value/" rel="nofollow ugc">https://www.netxms.org/forum/configuration/action-to-return-value/</a>, however I can only see the situation and instance, but not the attribute - maybe this is the problem?(see attachment).</p>
<p dir="auto">My situation created is:<br />
Event: SYS-NODE-DOWN, Situation Name = NodeDown, situation instance = %n, Attribute: status = 1. This will create a NodeDown situation instance for each node with a status = 1 for a sys_node_down<br />
Event: SYS-NODE-UP, Situation Name = NodeUp, situation instance = %n, Attribute: status = 0. This will create a NodeDown situation instance for each node with a status = 0 for a sys_node_up</p>
<p dir="auto">I have setup an event process policy for a separate host that I want to report on if the router (dev2rtr) is NOT down:<br />
My script in this event processing policy is:</p>
<pre><code>// We only want to send alert if router is not down
sub main()
{
   s = FindSituation("NodeDown", "dev2rtr");
   if (s != NULL)
   {
   if (s-&gt;status == 1)
      return 0; // Don't match rule
   }
   return 1; // Match rule
}
</code></pre>
<p dir="auto">I am using version 1.08 on a windows platform.</p>
<p dir="auto">Appreciate any help with this,<br />
Steve...</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000000469-situations.JPG" alt="situations.JPG" class="img-markdown  img-fluid" width="623" height="249" /></p>
]]></description><link>https://forum.netxms.org/topic/1102/problem-with-node-down-configuration-using-situation</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:25:45 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1102.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Jan 2011 01:04:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with Node-Down-Configuration using situation on Wed, 12 Jan 2011 04:02:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">Sorry I missed the bit in the post you referred to about situation attributes. Thanks for your help.</p>
<p dir="auto">Steve...</p>
]]></description><link>https://forum.netxms.org/post/5001</link><guid isPermaLink="true">https://forum.netxms.org/post/5001</guid><dc:creator><![CDATA[SteveK]]></dc:creator><pubDate>Wed, 12 Jan 2011 04:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with Node-Down-Configuration using situation on Tue, 11 Jan 2011 21:42:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">Thanks for the reply.</p>
<p dir="auto">I still am having problems with my implementation, should I be able to see the attributes in situation manager?, as I can see the instance, but cannot see the attribute.</p>
<p dir="auto">Many thanks,<br />
Steve..</p>
]]></description><link>https://forum.netxms.org/post/5000</link><guid isPermaLink="true">https://forum.netxms.org/post/5000</guid><dc:creator><![CDATA[SteveK]]></dc:creator><pubDate>Tue, 11 Jan 2011 21:42:41 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with Node-Down-Configuration using situation on Tue, 11 Jan 2011 21:10:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Try to use GetSituationAttrubute(s, "status") instead of s-&gt;status - there was a bug report that latter method of accessing situation's attributes still not working, although I was thinking that I have fixed it for 1.0.8 - I still didn't check that myself (see this: <a href="https://www.netxms.org/forum/configuration/logwatch-function/msg4934/#msg4934" rel="nofollow ugc">https://www.netxms.org/forum/configuration/logwatch-function/msg4934/#msg4934</a>).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4998</link><guid isPermaLink="true">https://forum.netxms.org/post/4998</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 11 Jan 2011 21:10:24 GMT</pubDate></item></channel></rss>