<?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[Ping IP which is result of another DCI]]></title><description><![CDATA[<p dir="auto">I need to monitor a bunch of border router at our customer location.  When a router can not be reach, either we have an issue with the router itself or the ISP modem / router is down.</p>
<p dir="auto">My idea is to ping both the router and the ISP modem/routeur which is the network gateway.</p>
<p dir="auto">I have a DCI id 382 that get SNMP ipRouteNextHop (.1.3.6.1.2.1.4.21.1.7.0.0.0.0) from the border router.  Now I need a DCI to ping result of DCI 382.  If ISP ping and router does not, our managed router is down.  If both are down, we have an ISP issue.</p>
<p dir="auto">How to do that ?<br />
Any thoughts ?</p>
]]></description><link>https://forum.netxms.org/topic/5700/ping-ip-which-is-result-of-another-dci</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 20:47:15 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5700.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Sep 2018 12:54:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ping IP which is result of another DCI on Wed, 26 Sep 2018 14:01:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you can create script DCI with the following script:</p>
<pre><code>// Read default gateway from DCI
gw = GetDCIValueByName($node, ".1.3.6.1.2.1.4.21.1.7.0.0.0.0");
if (gw == null)
	return null;

// Find node which will be ping source
pingSourceNode = FindNodeObject($node, "netxms");
if (pingSourceNode == null)
	return null;

// Return ping RTT from ping source node
return AgentReadParameter(pingSourceNode, "ICMP.Ping(" . gw . ")");
</code></pre>
<p dir="auto">This script reads default gateway address from existing DCI and then use agent parameter ICMP.Ping to ping it from another node. Name of ping source node should be set in FindNodeObject function call.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/24850</link><guid isPermaLink="true">https://forum.netxms.org/post/24850</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 26 Sep 2018 14:01:17 GMT</pubDate></item></channel></rss>