Ad Widget

Collapse

LLD Filter value set to a variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • withjigs
    Junior Member
    • Apr 2021
    • 4

    #1

    LLD Filter value set to a variable

    Hi all,

    We are using Zabbix 5.0 LTS with all hosts running agent 2.

    I am currently trying to setup docker monitoring using template: https://git.zabbix.com/projects/ZBX/...at=release/5.0

    I want to avoid some containers from being discovered, so will be using "Filters" for the "Containers discovery" rule.

    As different group of hosts would need a different set of containers which should not be discovered, I am trying this:

    1. On the template Macros tab, setting {$DOCKER.LLD.FILTER.CONTAINER.NOT_MATCHES} to a user defined macro, e.g. {$UNMONITORED.CONTAINERS}

    2. When I apply the template to a host, I set value of the {$UNMONITORED.CONTAINERS} for the host - depending on the containers to ignore discovering.

    I am still seeing items created for the containers that I would like NOT to be discovered.

    Thank you for your help!
    Last edited by withjigs; 16-02-2022, 05:34.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Define a new value to {$DOCKER.LLD.FILTER.CONTAINER.NOT_MATCHES} on host level. No reason to try to set a macro value via macro, which IIRC does not work...

    Comment

    Working...