<?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[NetXMS deletes interface and recreates it and sends notifications]]></title><description><![CDATA[<p dir="auto">Hello all,<br />
I'm facing a problem, on a pc that has tunnel interfaces for VPN connections. After the interface get up/down then it deletes the interface and recreates it, and it also gives it an expected state up so I get notifications and email warnings.<br />
I've done delete the interface, obviously doesn't helped. On interfaces I've done unmanage and exclude this interface from network topology with expected state ignore. Nothing of that helps.<br />
Is there another way to disable all other interfaces except the ethernet interface, or at least make for that specific node(pc) default expected state for new interfaces to be ignonre?<br />
here is a part of event log of that node:</p>
<pre><code>ID		Time		Source	DCI	Event				Sevirety	Message								Root ID
591861	06.11.2018 12:25:32	PC	0	SYS_IF_UP			Normal	Interface "tun1" changed state to UP (IP Addr: 10.0.1.6/32)		0
591895	06.11.2018 13:15:34	PC	0	SYS_IF_DOWN			Minor	Interface "tun1" changed state to DOWN (IP Addr: 10.0.1.6/32)		0
591916	06.11.2018 13:24:17	PC	0	SYS_IF_ADDED			Normal	Interface "tun1" added (IP Addr: 10.0.1.6/32, IfIndex: 36)		0
591915	06.11.2018 13:24:17	PC	0	SYS_IF_DELETED			Normal	Interface "tun1" deleted (IP Addr: 10.0.1.6/32, IfIndex: 35)		0
591917	06.11.2018 13:24:47	PC	0	SYS_IF_EXPECTED_STATE_UP	Normal	Expected state for interface "tun1" set to UP				0
591918	06.11.2018 13:25:52	PC	0	SYS_IF_UP			Normal	Interface "tun1" changed state to UP (IP Addr: 10.0.1.6/32)		0
592005	06.11.2018 14:54:23	PC	0	SYS_IF_EXPECTED_STATE_IGNORE	Normal	Expected state for interface "tun1" set to IGNORE			0
592078	06.11.2018 16:24:32	PC	0	SYS_IF_ADDED			Normal	Interface "tun1" added (IP Addr: 10.0.1.6/32, IfIndex: 37)		0
592079	06.11.2018 16:24:42	PC	0	SYS_IF_EXPECTED_STATE_UP	Normal	Expected state for interface "tun1" set to UP				0
592080	06.11.2018 16:25:47	PC	0	SYS_IF_UP			Normal	Interface "tun1" changed state to UP (IP Addr: 10.0.1.6/32)		0
</code></pre>
]]></description><link>https://forum.netxms.org/topic/5730/netxms-deletes-interface-and-recreates-it-and-sends-notifications</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:21:30 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5730.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Nov 2018 13:07:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NetXMS deletes interface and recreates it and sends notifications on Wed, 14 Nov 2018 08:03:40 GMT]]></title><description><![CDATA[<p dir="auto">Finally I've done it with Hook:ConfigurationPoll and I check for both "node name" and "Interface name" as well.<br />
If it matches both of them then I set Interface Expected State to Ignore</p>
<pre><code>interfaces = GetNodeInterfaces($node);
foreach (interface : interfaces)
{
	if ( $node-&gt;name ~="(?i)Node1Name" &amp;&amp; interface-&gt;name ~= "(?i)tun.*" ){
	SetInterfaceExpectedState(interface, "IGNORE");
	}else if ( $node-&gt;name ~="(?i)Node2Name" &amp;&amp; interface-&gt;name ~= "(?i)tun.*|vmnet.*|docker.*|docker_gwbridge|vboxnet.*" ){
	SetInterfaceExpectedState(interface, "IGNORE");}
}
</code></pre>
]]></description><link>https://forum.netxms.org/post/25015</link><guid isPermaLink="true">https://forum.netxms.org/post/25015</guid><dc:creator><![CDATA[i.katimertzoglou]]></dc:creator><pubDate>Wed, 14 Nov 2018 08:03:40 GMT</pubDate></item><item><title><![CDATA[Reply to NetXMS deletes interface and recreates it and sends notifications on Tue, 13 Nov 2018 14:46:39 GMT]]></title><description><![CDATA[<p dir="auto">Great thank you guys.<br />
I got it working very helpful information.<br />
I also filter the nodes with $node variable.</p>
<p dir="auto">but why is it that when interface is down and do a status poll it says cannot poll from that interface, and when interface is back on it still says it cannot poll data from that interface?<br />
also if I do a configuration poll when interface is down (even restart the interface) netxms deletes that interface.</p>
]]></description><link>https://forum.netxms.org/post/25011</link><guid isPermaLink="true">https://forum.netxms.org/post/25011</guid><dc:creator><![CDATA[i.katimertzoglou]]></dc:creator><pubDate>Tue, 13 Nov 2018 14:46:39 GMT</pubDate></item><item><title><![CDATA[Reply to NetXMS deletes interface and recreates it and sends notifications on Wed, 07 Nov 2018 17:07:05 GMT]]></title><description><![CDATA[<p dir="auto">Here is the Hook:CreateInterface script in the script library that I use to give you an idea:</p>
<pre><code>if ($1-&gt;name ~= "(?i).*Teredo.*|.*isatap.*|.*Loopback.*|.*Bluetooth.*|Local Area Connection\* 12|Local Area Connection\* 11|Local Area Connection\* 9|Local Area Connection\* 8|Local Area Connection\* 2|6TO4 Adapter|sit0") {
   return false;
} else {
   return true;
}
</code></pre>
<p dir="auto">You could add in tun1 to that list or whatever names you do not want to create.</p>
]]></description><link>https://forum.netxms.org/post/24980</link><guid isPermaLink="true">https://forum.netxms.org/post/24980</guid><dc:creator><![CDATA[gdodd]]></dc:creator><pubDate>Wed, 07 Nov 2018 17:07:05 GMT</pubDate></item><item><title><![CDATA[Reply to NetXMS deletes interface and recreates it and sends notifications on Wed, 07 Nov 2018 13:18:39 GMT]]></title><description><![CDATA[<p dir="auto">You can write a Hook:CreateInterface script to prevent interfaces from being created that you don't care about.<br />
You can also create a Hook:ConfigurationPoll script to automatically check all node interfaces, then set the interface expected state to IGNORE on interfaces you don't want to be alerted on. I wouldn't think you can do that inside the CreateInterface Hook, as the interface doesn't get created until after the script has run, but I could be wrong.</p>
<p dir="auto">For example the following Hook:ConfigurationPoll will set any network interface on a device detected as a printer to Ignore:</p>
<pre><code>interfaces = GetNodeInterfaces($node);
foreach (interface : interfaces)
{
	if ( $node-&gt;isPrinter == TRUE ) SetInterfaceExpectedState(interface, "IGNORE");
}
</code></pre>
<p dir="auto">Hope that helps.</p>
]]></description><link>https://forum.netxms.org/post/24978</link><guid isPermaLink="true">https://forum.netxms.org/post/24978</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Wed, 07 Nov 2018 13:18:39 GMT</pubDate></item></channel></rss>