Recent Posts

Pages: [1] 2 3 ... 10
1
General Support / Re: DCI ICMP
« Last post by Filipp Sudanov on January 18, 2021, 10:48:44 pm »
You can ping external IP address. For that set up the DCI on a node that has NetXMS agent (that could be the same node where you have netxms server - normally you should have netxms agent running there). Select DCI origin "Agent" and use ICMP.PacketLoss(8.8.8.8) parameter.
2
General Support / Re: Huawei Router Configuration Polls Fails
« Last post by Filipp Sudanov on January 18, 2021, 10:33:17 pm »
Are you sure that the other monitoring software is using exactly SNMP, not some proprietary protocol? Does it use standard SNMP port?
You can try capturing communication of that software to the router with Wireshark and compare what network packets it's actually sending.

also you can try getting some data via SNMP using snmpget package from netsnmp software https://sourceforge.net/projects/net-snmp/files/net-snmp%20binaries/5.5-binaries/net-snmp-5.5.0-2.x64.exe/download
3
General Support / Re: Map Images
« Last post by gokiwi on January 18, 2021, 08:54:20 pm »
I cannot believe that people are happy with the extremely limited range of map icons/images   or do people not create maps ?
4
General Support / Re: Huawei Router Configuration Polls Fails
« Last post by gokiwi on January 18, 2021, 08:42:43 pm »
Would you not have to add the non standard snmp ports to the snmp configuration under Network Credentials ?
5
General Support / Re: Get mac vendor result as dci
« Last post by Alex Kirhenshtein on January 18, 2021, 05:20:49 pm »
You can download latest mapping here: http://standards-oui.ieee.org/oui.txt

Then parse it and save in the mapping table (in this example - using nxshell):

Code: [Select]
#!/usr/bin/env nxshell

TABLE_NAME='MAC Address'

# find mapping table, create if missing
table_id = -1
for t in session.listMappingTables():
    if t.name == TABLE_NAME:
        table_id = t.id
        break
if table_id == -1:
    table_id = session.createMappingTable(TABLE_NAME, 'Lookup table for MAC -> Vendor', 0)

target_table = session.getMappingTable(table_id)

with open('oui.txt', 'r') as f:
    target_table.data.clear()
    for line in f.readlines():
        if "(hex)" in line:
            (mac, _, name) = line.strip().split('\t')
            mac = mac.split(' ')[0].replace('-', ':')
            target_table.data.add(MappingTableEntry(mac, name, None))

session.updateMappingTable(target_table)

Then you can lookup with map() function (in this example - find interface which have primary IP address):

Code: [Select]
for (i : $node->interfaces) {
if (i->ipAddr == $node->ipAddr) {
return map("MAC Address", (substr(i->macAddr, 0, 8)));
}
}
Code: [Select]
Result: Apple, Inc.
6
General Support / Re: Huawei Router Configuration Polls Fails
« Last post by Mazhar Bokhari on January 18, 2021, 05:05:38 pm »
I have enabled SNMP.Discovery.SeparateProbeRequests parameter and restarted the server service but no luck.

 :'( :'( :'(
7
General Support / Re: Get mac vendor result as dci
« Last post by Filipp Sudanov on January 18, 2021, 04:54:54 pm »
Mapping tables might better just for the reason of not disclosing the addresses to 3-rd party and for reliability.

You can add this script to script library and then use macro %[name_of_script] to get mac address of that node's interface that has primary IP address.
Code: [Select]
mac = NULL;
for (i:$node->interfaces)
{
  if ($node->ipAddr == i->ipAddr) mac = i->macAddr;
}
return mac;
8
General Support / Re: Huawei Router Configuration Polls Fails
« Last post by Filipp Sudanov on January 18, 2021, 04:36:52 pm »
TCP connection to port 44818 happens on the next step of configuration poll - that's an attempt to connect via Ethernet/IP protocol. It's a protocol used in industrial devices. Your router is answering with RST - it says that this port is closed. This is normal.
The part related to SNMP is above. You can see that NetXMS is sending SNMP request that have three OIDs in it - 1.3.6.1.2.1.1.2.0 and so on. The is no reply, so the request is being repeated multiple time.

It could be that the router does not like that three OIDs are requested simultaneously. You can try turning on server configuration parameter SNMP.Discovery.SeparateProbeRequests, then only one OID will be requested at a time.
9
General Support / Re: Get mac vendor result as dci
« Last post by Egert143 on January 18, 2021, 03:49:49 pm »
Thanks for the example. Why would mapping tables be better choice ?

Also seems like no easy way to get node mac address like %{node_primary_ip} ?

Egert
10
General Support / Re: Get mac vendor result as dci
« Last post by Alex Kirhenshtein on January 18, 2021, 03:18:35 pm »
On one of the nodes with agent (let's call it "node1") add external parameter:

ExternalParameter=ResolveMAC(*):curl -s "https://api.macvendors.com/$1"

Then add DCI in the template:
Parameter=ResolveMAC(%{node_mac})
Source Node=node1

But I'd use mapping tables instead of calling remote service.
Pages: [1] 2 3 ... 10