Ad Widget

Collapse

LLD override regarding host name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ignace_Frometon
    Junior Member
    • Dec 2021
    • 26

    #1

    LLD override regarding host name

    Hello there !

    i would like to set a LLD override with a condition regarding the built in host level macro {HOST.NAME} (zabbix 6.0.9)

    i configured override tab as it is in the screenshot, but i have the message "Cannot update discovery rule Incorrect filter condition macro for override "server01".​" when i click update.

    it seems possible in documentation :
    {HOST.NAME} → Trigger-based notifications and commands
    → Problem update notifications and commands
    → Internal notifications
    → Map element labels, map URL names and values
    → Item key parameters
    → Host interface IP/DNS
    → Trapper item "Allowed hosts" field
    → Database monitoring additional parameters
    → SSH and Telnet scripts
    → Web monitoring4
    → Low-level discovery rule filter regular expressions
    → URL field of dynamic URL dashboard widget
    → Trigger names, event names, operational data and descriptions
    → Trigger URLs
    Tag names and values
    → Script-type item, item prototype and discovery rule parameter names and values
    → HTTP agent type item, item prototype and discovery rule fields:
    URL, Query fields, Request body, Headers, Proxy, SSL certificate file, SSL key file, Allowed hosts.
    → Manual host action scripts (including confirmation text)
    → Manual event action scripts (including confirmation text)
    → Description of item value widget
    https://www.zabbix.com/documentation...ed_by_location

    am i missing something ?
    Attached Files
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    Docs say " Low-level discovery rule filter regular expressions​" but you enter it in "Macro" field... "Regular expression" field is the one, where you have "server01"...

    Comment

    • Ignace_Frometon
      Junior Member
      • Dec 2021
      • 26

      #3
      hello Cyber

      thanks for your answer.

      so, how do i set up the condition ?

      if i understand, it should look like
      {#MYSERVER} does not equal to {HOST.NAME}

      but how do i assign a value to {#MYSERVER} ?

      (i'm trying to modify the native discovery Block devices discovery)​

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4806

        #4
        As long as I understand it, you cannot really do host based overrides in such way... Your discovery data does not contain anything about hostname... block devices discovery has only devtype and devname....
        Only in case your initial data contains that {#myserver} then you can compare it to regex... and there comparing to {host.name} would be completely nonsense, as it would always match...​

        Comment

        • Ignace_Frometon
          Junior Member
          • Dec 2021
          • 26

          #5
          ok thanks
          i guess i'll have to clone the template to make a specific one.

          Comment

          • Rudlafik
            Senior Member
            • Nov 2018
            • 144

            #6
            Hi, I have same problem. I have LLD for windows disk. This template is applied to 100 win servers. I need add specific tag for specific disks (C:, E:, J:, G:, etc.) per specific hosts (their names). I MUST broken Zabbix to. I dont would like to go by way PS script and generate new disk and then solve problem with lost hstoric data per 2 years! Ask me how I'm doing in a month. vfs.fs.discovery, vfs.fs.get, perf_instance_en.discovery do not contain host name data.

            Comment

            Working...