Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25297

HostMetadata line doesnt work with autoregistration

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

      This bug exists in the Zabbix 6.4 series from version .13 to .18. Not sure about 7.0 and above.

      Makes heavy use of the HostMetadata line in the zabbix agent--

      Configuring that line using puppet, to dynamically add a host to various groups and templates.

      For example, one of systems might have:

      HostMetadata=:kernel=Linux:osfamily=Debian:org=CTSI:virtual=vmware:role=stage:server=yes:module=apache:module=shibboleth

       Autoregistration actions that add this host to "OS/Linux", "OS/Debian", the CTSI org, etc.  The 'module' means it should be added to "Application/Apache" and "Application/Shibboleth", and have the appropriate templates added as well.

      Added the Shibboleth template  and updated the hostmetadata for the systems running shibboleth.

      Then created a standard autoregistration action:

       

      And it didn't work.  If added a trailing colon ( : ) to the hostmetadata line:

      HostMetadata=:kernel=Linux:osfamily=Debian:org=CTSI:virtual=vmware:role=stage:server=yes:module=apache:module=shibboleth:

      And it started working.

      Is this a known bug?

        1. host-2.png
          host-2.png
          54 kB
        2. host-1.png
          host-1.png
          50 kB
        3. auto-registration-actions.png
          auto-registration-actions.png
          126 kB
        4. action.png
          action.png
          16 kB

            zabbix.dev Zabbix Development Team
            rgrjunbergs Romans Grjunbergs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: