NetXMS Support Forum

English Support => General Support => Topic started by: andym on October 15, 2020, 03:04:09 PM

Title: Not all Interfaces are appearing
Post by: andym on October 15, 2020, 03:04:09 PM
Hi,

When I perform a poll | configuration (full)  I only see a subset of the interfaces, I see output that tells me other interface

[10.01.2020 13:01:35] Checking interface configuration...
[10.01.2020 13:01:39]    Found new interface "Gi1/0/1"
[10.01.2020 13:01:39]    Creation of interface object "Gi1/0/1" blocked by filter
[10.01.2020 13:01:39]    Found new interface "Gi1/0/2"
[10.01.2020 13:01:39]    Creation of interface object "Gi1/0/2" blocked by filter
[10.10.2020 13:01:39]    Found new interface "Gi1/0/3"
etc

Can anyone suggest what is causing this and how I can either modify the filter, or else manually add interfaces so that on the next Poll they are not removed by NetXMS

Thanks

Andym
Title: Re: Not all Interfaces are appearing
Post by: Alex Kirhenshtein on October 15, 2020, 03:55:56 PM
Check script "Hook::CreateInterface" in scripting library (Configuration -> Scripting Library). Script is executed on configuration poll and if it returns true - interface is created, if false - creation is blocked.
Title: Re: Not all Interfaces are appearing
Post by: andym on October 16, 2020, 10:42:45 AM
Hi Alex,

Thanks for the reply... your suggestion worked perfectly and I can now see all the interfaces. the script was filtering out those without an IP Address assigned.

Following on from there, I have right-clicked an interface that is being used and chosen Create data collection items, accepted the defaults of Inbound traffic (bits) / Delta value (average per second) and outbound traffic (bits) / Delta value (average per second).

So my next question is how do I see the info from the Data Collection Item ?

Thanks

AndyM
Title: Re: Not all Interfaces are appearing
Post by: Alex Kirhenshtein on October 16, 2020, 11:00:27 AM
switch to "Last Values" tab, there will be list of all active DCIs. You can access history / charts from there.
Title: Re: Not all Interfaces are appearing
Post by: andym on October 16, 2020, 07:13:25 PM
Hi Alex,

OK so this is what I've tried............

right-click the interface for which I want to ultimately add to a dashboard
chose create data collection items...
accept the settings in the "Creae Interface DCI" window
a "Create DCI for interface" window briefly appears, the disappears.

If I then right-click on the switch itself and choose last values I only see some that were already chosen/set/configured

:(

any further suggestions would be greatly appreciated.
Title: Re: Not all Interfaces are appearing
Post by: Filipp Sudanov on October 19, 2020, 04:32:47 PM
But if you open Data Collection Configuration for that switch, are these DCIs there?

Creae Interface DCI functionality is quite old. It's better to use a template with instance discovery that would get interface list somehow and create DCIs automatically.