Many thanks for greate examples, got it working and went with mapping table version. 
Egert

Egert
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
08.01.2021 10:25:33 NetXms Critical SYS_DB_QUERY_FAILED Database query failed (Query: INSERT INTO interface_vlan_list (iface_id,vlan_id) VALUES (?,?); Error: 23505 ERROR: duplicate key value violates unique constraint "interface_vlan_list_pkey"
DETAIL: Key (iface_id, vlan_id)=(104256, 1) already exists.)
[19.11.2020 08:41:09] **** Poll request sent to server ****
[19.11.2020 08:41:09] Poll request accepted
[19.11.2020 08:41:09] Starting status poll for node TestNode
[19.11.2020 08:41:09] Checking SNMP agent connectivity
[19.11.2020 08:41:09] SNMP agent unreachable
[19.11.2020 08:41:09] Starting status poll on access point TestNode
[19.11.2020 08:41:09] Current access point status is NORMAL
[19.11.2020 08:41:09] Access point status after poll is NORMAL
[19.11.2020 08:41:09] Finished status poll on access point TestNode
[19.11.2020 08:41:09] Starting status poll on interface lte1
[19.11.2020 08:41:09] Current interface status is NORMAL
[19.11.2020 08:41:09] Starting ICMP ping
[19.11.2020 08:41:09] Interface is NORMAL for 3763 polls (1 poll required for status change)
[19.11.2020 08:41:09] Interface status after poll is NORMAL
[19.11.2020 08:41:09] Finished status poll on interface lte1
[19.11.2020 08:41:09] Starting status poll on interface wlan1
[19.11.2020 08:41:09] Current interface status is UNKNOWN
[19.11.2020 08:41:09] Interface status cannot be determined
[19.11.2020 08:41:09] Interface is UNKNOWN for 365 polls (1 poll required for status change)
[19.11.2020 08:41:09] Interface status after poll is UNKNOWN
[19.11.2020 08:41:09] Finished status poll on interface wlan1
[19.11.2020 08:41:09] Starting status poll on interface ether1
[19.11.2020 08:41:09] Current interface status is UNKNOWN
[19.11.2020 08:41:09] Interface status cannot be determined
[19.11.2020 08:41:09] Interface is UNKNOWN for 365 polls (1 poll required for status change)
[19.11.2020 08:41:09] Interface status after poll is UNKNOWN
[19.11.2020 08:41:09] Finished status poll on interface ether1
[19.11.2020 08:41:09] Starting status poll on interface Bridge
[19.11.2020 08:41:09] Current interface status is NORMAL
[19.11.2020 08:41:09] Starting ICMP ping
[19.11.2020 08:41:09] Interface is NORMAL for 3763 polls (1 poll required for status change)
[19.11.2020 08:41:09] Interface status after poll is NORMAL
[19.11.2020 08:41:09] Finished status poll on interface Bridge
[19.11.2020 08:41:10] Node is connected
[19.11.2020 08:41:10] Finished status poll for node TestNode
[19.11.2020 08:41:10] Node status after poll is NORMAL
[19.11.2020 08:41:10] **** Poll completed successfully ****