Ad Widget

Collapse

LLD - multifield filtering

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exa
    Junior Member
    • Nov 2014
    • 1

    #1

    LLD - multifield filtering

    Hi everyone,

    So I was trying to setup a LLD for SNMP device interfaces that would do the trick to discover available interfaces and put some items/graphs on them.

    What is the problem - we have a lot of network devices and lots of interfaces on all of them, but around 3/4 of the interfaces are inactive (are "down", or, for SNMP, their ifOperStatus is "down" or "2" or so.). Therefore I want to filter discovered interfaces based on ifOperStatus.

    From LLD discovery I saw that it's clearly impossible to have more than one SNMP value for filtering in discovery - like, for {#SNMPVALUE} macro.

    So, what is the best thing to do if I want both the SNMP interface description (ifName) and filter with ifOperStatus?

    If it's not possible, what is the best method to modify zabbix to support this? I read about discovery scripts, but as far as I see they are only good for agent-ish stuff discovery.

    Thanks!
    -mk
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    at the moment it is not possible, but it exist a feature request for this.. you can vote for it, or if you realy need it NOW you can pay for it..

    Debian-User

    Sorry for my bad english

    Comment

    • evertonco
      Member
      • Aug 2014
      • 75

      #3
      According the zabbix 2.4 release notes, multiple LLD filters is now supported.

      Anyway, you can create a custom LLD for discover and filter anything you want. For example, you could create a custom LLD for run the snmpwalk to return the interface indexes ({#IFINDEX}), interface values ({#IFVALUE}) and interface states ({#IFSTATE}), format it as JSON object and use Filter option with {#IFSTATE} on LLD page.

      Comment

      Working...