Ad Widget

Collapse

Trouble with Discovery rules

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aft2d
    Junior Member
    • Oct 2017
    • 2

    #1

    Trouble with Discovery rules

    Hey Guys,

    We've deployed docker on all of our host systems some days ago. Unfortunately docker mounts the disk in a different path again (/var/lib/docker/overlay2, /var/lib/docker/plugins)
    Zabbix finds these mounts with it's low level discovery and monitors them.

    To prevent zabbix from doing that I've created a global regular expression:


    Then I've added this global regular expression to the filter rule for the mounted file system discovery:


    So far so good.
    The mounted file system discovery is part of a template which is linked to several host groups. These groups have hosts.

    After some days troubleshooting why my filter does not work I discovered that the hosts don't use my updated filter.

    This is the setting of one of my hosts which uses the template with the updated filter.
    Here I see that it does not update.

    Long story short, I don't know why my changes to the discovery rules of the template aren't applied to the hosts.

    I've found some topics that say, that I have to clone the template and readd it.
    Basically I don't know if I did that correct, anyway it did not work

    I'm using Zabbix 3.4.3 on Ubuntu 16.04 Xenial LTS

    Thanks for help.
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hi,

    Sorry but I've lost the point.

    So you have few levels of items - host items and template items. There is some options which can be overridden on the host level.

    If you want to change the Template - best practice is to Clone the template with your custom naming and then edit the items. I've understood that you want to customize the regex for the Low-Level Discovery.

    Then I would suggest you to use Global regular expressions. Go to Administration -> General -> Find regular expressions in the drop-down menu and add your custom regular expression. Then if you want to refer to the Global regex - use @ symbol before its name.

    Then go yo the Configuration -> Templates , find the particular template you want to edit, perform full clone, go to your discovery and edit the discovery. Then perform unlink and clear to delet template from host and attach the new one.

    Hope it helps.

    Regards,
    Alex!

    Comment

    • aft2d
      Junior Member
      • Oct 2017
      • 2

      #3
      Hi Alex,

      thanks for your response.
      That's exactly what I did, but the filter in the host configuration itself does not update.

      That's the configuration of the cloned/updated template:
      Templates > My Template > Discovery Rules > Mounted Filesystem Discovery > Filters


      And that's the configuration of the host:
      Hosts > My Host > Discovery Rules > Mounted Filesystem Discovery > Filters

      Comment

      • kaspars.mednis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2017
        • 349

        #4
        Hi,

        Can you post your both expressions

        @Ignored Mounth Paths
        @File systems for discovery

        Regards,
        Kaspars

        Comment

        Working...