Hello,
net.if.discovery rule in one of the hosts on my zabbix server creates itemes with empty {#IFNAME}. I.e. keys looks like net.if.in[] or net.if.out[]. Then this rule report the problem, that "cannot create item... already exists" because it detects several such interfaces.
Actually, I solved this problem by adding regular expression ^$ is FALSE. So, just wondering why this happens.
Output of zabbix_get -s host -p 10050 -k net.if.discovery:
Output of zabbix_get -s host -p 10050 -k "net.if.list"
net.if.discovery rule in one of the hosts on my zabbix server creates itemes with empty {#IFNAME}. I.e. keys looks like net.if.in[] or net.if.out[]. Then this rule report the problem, that "cannot create item... already exists" because it detects several such interfaces.
Actually, I solved this problem by adding regular expression ^$ is FALSE. So, just wondering why this happens.
Output of zabbix_get -s host -p 10050 -k net.if.discovery:
Code:
{"data":[{"{#IFNAME}":"CORP Main LAN-QoS Packet Scheduler-0000"},
{"{#IFNAME}":"HP Network Team #1"},
{"{#IFNAME}":"Microsoft Virtual Network Switch Adapter"},
{"{#IFNAME}":"CORP Main LAN"},
{"{#IFNAME}":"Microsoft Failover Cluster Virtual Adapter"},
{"{#IFNAME}":"HP NC112i 1-port Ethernet Server Adapter"},
{"{#IFNAME}":"Microsoft Failover Cluster Virtual Adapter-QoS Packet Scheduler-0000"},
{"{#IFNAME}":"HP NC112i 1-port Ethernet Server Adapter #2"},
{"{#IFNAME}":"Software Loopback Interface 1"},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":""},
{"{#IFNAME}":"Teredo Tunneling Pseudo-Interface"}]}
Code:
Ethernet enabled - CORP Main LAN-QoS Packet Scheduler-0000 Ethernet enabled - HP Network Team #1 Ethernet enabled - Microsoft Virtual Network Switch Adapter Ethernet enabled 192.168.1.7 CORP Main LAN Ethernet enabled - Microsoft Failover Cluster Virtual Adapter Ethernet unknown - HP NC112i 1-port Ethernet Server Adapter Ethernet enabled - Microsoft Failover Cluster Virtual Adapter-QoS Packet Scheduler-0000 Ethernet enabled - HP NC112i 1-port Ethernet Server Adapter #2 Software Loopback enabled 127.0.0.1 Software Loopback Interface 1 Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation unknown -. Tunnel type encapsulation enabled - Teredo Tunneling Pseudo-Interface
Comment