Ad Widget

Collapse

Template Discovery Rule

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tokiro
    Junior Member
    • Oct 2017
    • 9

    #1

    Template Discovery Rule

    Hi all,

    I'm trying to build a discovery rule in a template to check the status and the bandwidth of networks interfaces of a VMWare ESX 6.5, i'm working on zabbix 3.0.3.

    I made my discovery rule with this OID :
    Code:
    discovery[{#IFNAME},IF-MIB::ifName]
    It works pretty well.

    This OID returns all the netwoks intefaces of my ESX (about 30 entry), but i only want a few of them, like
    Code:
    from IF-MIB::ifName.0 to IF-MIB::ifName.8
    Is it possible to do that ?

    Thank you.
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hmm, you want to get only interfaces using index( e.g. 1...30) or using the name ?

    Ok, in any case you have to use Filter tab in your Discovery and put the regular expression. I would prefer to use global regular expressions, but you also can use Template/Host-level defined Regular expression.

    Try
    Code:
    {#SNMPINDEX} = 1|8|10|15|30
    More about SNMP and LLD: https://www.zabbix.com/documentation...y_of_snmp_oids

    More about Global regular expressions: https://www.zabbix.com/documentation...ar_expressions

    Regards,
    Alex!

    Comment

    • Tokiro
      Junior Member
      • Oct 2017
      • 9

      #3
      Thanks, it was about using index of interfaces.

      Comment

      Working...