Ad Widget

Collapse

Auto registration using metadata fails with a "cannot link template(s)" error message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saibuster
    Member
    • Jul 2018
    • 32

    #1

    Auto registration using metadata fails with a "cannot link template(s)" error message

    I have a Linux host with a specific metadata value (linuxhosts) which I have set in the zabbix_agentd.conf
    I also set an Action with an auto registration event source with the following configuration:

    Conditions:
    Host metadata like linuxhosts

    Operations:
    Add to host groups SystemTestLinux
    Link to template Linux system test template

    The issue is that the host is not being linked to Linux system test template.
    Looking at zabbix_server.log, I see the following error:
    cannot link template(s) "Linux system test" to host "xxxxx": conflicting item key "net.if.discovery" found The template Linux system test is not linked to any other template and I do not have any discovery rule enabled.
    It is also important to note that I currently have a lot of Windows Hosts that are linking fine to templates, the problem only occurs
    with Linux hosts.

    Any help would be highly appreciated!


  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Could it be that the host first matches some other Action which links the template that has this item to it?

    Comment

    • saibuster
      Member
      • Jul 2018
      • 32

      #3
      Originally posted by dimir
      Could it be that the host first matches some other Action which links the template that has this item to it?
      Looking at the host Groups, I see that it had been added to template which makes no sense... This template that it had been linked to also
      has an auto registration action yet the metadata on this action is different.

      I also see that the host was added to two groups; Discovered hosts and a hosts group that is linked to the irrelevant template I've mentioned above.
      There are absolutely no Action to link either the template or the group to this host.

      Comment

      • saibuster
        Member
        • Jul 2018
        • 32

        #4
        Unfortunately I am still having this issue and it seems like a bug. I wanted to open an issue in github but issues is disabled.
        Any help would be highly appreciated!

        Comment

        • dimir
          Zabbix developer
          • Apr 2011
          • 1080

          #5
          Use our bug tracker: https://support.zabbix.com

          Comment

          • saibuster
            Member
            • Jul 2018
            • 32

            #6
            Thanks dimir, I've opened a case: https://support.zabbix.com/browse/ZBX-14722

            Comment

            Working...