Ad Widget

Collapse

Zabbix 4.4 LLD with preprocessing and filter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SixArt
    Junior Member
    • Jul 2015
    • 22

    #1

    Zabbix 4.4 LLD with preprocessing and filter

    HI,

    I have installed zabbix 4.4 and I want discover only interface with name like GigabitEthernet0/0/9.1035 and for this name obtain only GigabitEthernet0/0/9 (interface with subinterface).

    Discovery return this (output of item SNMPv3 with key : discovery[{#SNMPVALUE},1.3.6.1.2.1.2.2.1.2,{#STATUS},1.3.6.1 .2.1.2.2.1.8]
    {"data":[{"{#SNMPINDEX}":"1","{#SNMPVALUE}":"InLoopBack0"," {#STATUS}":"1"},{"{#SNMPINDEX}":"2","{#SNMPVALUE}" :"NULL0","{#STATUS}":"1"}, {"{#SNMPINDEX}":"3","{#SNMPVALUE}":"GigabitEtherne t0/0/8","{#STATUS}":"2"},{"{#SNMPINDEX}":"4","{#SNMPVAL UE}":"GigabitEthernet0/0/9","{#STATUS}":"1"}, {"{#SNMPINDEX}":"5","{#SNMPVALUE}":"GigabitEtherne t0/0/0","{#STATUS}":"1"},{"{#SNMPINDEX}":"6","{#SNMPVAL UE}":"GigabitEthernet0/0/1","{#STATUS}":"2"}, {"{#SNMPINDEX}":"7","{#SNMPVALUE}":"GigabitEtherne t0/0/2","{#STATUS}":"2"},{"{#SNMPINDEX}":"8","{#SNMPVAL UE}":"GigabitEthernet0/0/3","{#STATUS}":"2"}, {"{#SNMPINDEX}":"9","{#SNMPVALUE}":"GigabitEtherne t0/0/4","{#STATUS}":"2"},{"{#SNMPINDEX}":"10","{#SNMPVA LUE}":"GigabitEthernet0/0/5","{#STATUS}":"2"}, {"{#SNMPINDEX}":"11","{#SNMPVALUE}":"GigabitEthern et0/0/6","{#STATUS}":"2"},{"{#SNMPINDEX}":"12","{#SNMPVA LUE}":"GigabitEthernet0/0/7","{#STATUS}":"2"}, {"{#SNMPINDEX}":"13","{#SNMPVALUE}":"GigabitEthern et0/0/10","{#STATUS}":"2"},{"{#SNMPINDEX}":"14","{#SNMPV ALUE}":"Cellular0/0/0","{#STATUS}":"2"}, {"{#SNMPINDEX}":"15","{#SNMPVALUE}":"Cellular0/0/1","{#STATUS}":"2"},{"{#SNMPINDEX}":"16","{#SNMPVA LUE}":"Wlan-Radio0/0/0","{#STATUS}":"1"}, {"{#SNMPINDEX}":"17","{#SNMPVALUE}":"GigabitEthern et0/0/9.1035","{#STATUS}":"1"},{"{#SNMPINDEX}":"19","{#S NMPVALUE}":"GigabitEthernet0/0/9.1037","{#STATUS}":"1"}, {"{#SNMPINDEX}":"20","{#SNMPVALUE}":"Vlanif30","{# STATUS}":"1"}]} how can I get the desired result using filters and preprocessing?

    Regards,

    ​​​​​​​Dario
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    If I understood correctly you want to have the following filters of LLD rule:
    Code:
    {#SNMPVALUE}    matches    ^GigabitEthernet0/0/9\.1035$
    {#SNMPVALUE}    matches    ^GigabitEthernet0/0/9$

    Comment

    • SixArt
      Junior Member
      • Jul 2015
      • 22

      #3
      Hi,

      but GigabitEthernet0/0/9 is variable, and I want only interface GigabitEthernet0/0/9 if there are subinterface GigabitEthernet0/0/9\.1035

      Comment

      Working...