Ad Widget

Collapse

Active agent auto-registration doesn't link to template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Starko
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2012
    • 93

    #1

    Active agent auto-registration doesn't link to template

    Zabbix Server 2.2.2 on Debian 7
    Zabbix Proxy 2.2.2 on Debian 7
    Zabbix Agent 2.2.1 on Windows Server 2008 R2

    Hallo,
    I'm trying to set up "Active agent auto-registration".
    My Agent Conf looks like this:
    Code:
    Server=zabprox.customer.de
    ListenPort=10050
    ServerActive=zabprox.customer.de:10051 
    Hostname=SVVCENTER.customer.de 
    RefreshActiveChecks=120 
    HostMetadata=Customer_Win
    I've configured the following action:
    Code:
    Host metadata like Customer_Win
    ---
    Send message to users: admin (admin) via all media
    Add host
    Add to host groups: Customer
    Add to host groups: Windows servers
    Link to templates: TEMPLATE_Customer OS Windows
    Everytime I delete the host, it registrates itself new after two minutes. I gets added to the Host Group and the the Windows Server Group. But the Template gets never linked and the monitoring doesn't start.

    What am I doing wrong?
    Where can I find the logs for Active agent auto-registration?

    EDIT:
    I've found the error in the zabbix_server.log
    Code:
    11864:20140606:161631.142 cannot link template: trigger "RDP connect failed on {HOST.NAME}" in template "TEMPLATE_Customer OS Windows" has dependency from trigger "Ping Check Failed on {HOST.NAME}" in template "TEMPLATE_Customer ICMP Ping"
    The two templates "TEMPLATE_Customer OS Windows" & "TEMPLATE_Customer ICMP Ping" are linked.
    But it seems like the dependency is checked before both templates are linked to the host....
    When I separate the templates and link them manually, it works if I link the ICMP template first. It fails with the exact same error, when I link the Windows OS first (for obvious reasons)

    So in my eyes, this is a bug. You can't link linked templates which have dependencies, because they are checked, before both templates are linked.

    EDIT:
    Created bug report: https://support.zabbix.com/browse/ZBX-8313
    Last edited by Starko; 06-06-2014, 16:55.
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    Have you tried linking the templates manually? I'm wondering if you'll get a "dup key" error.

    Comment

    • Starko
      Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Aug 2012
      • 93

      #3
      I wrote that in my second EDIT
      EDIT:
      I've found the error in the zabbix_server.log
      Code:
      11864:20140606:161631.142 cannot link template: trigger "RDP connect failed on {HOST.NAME}" in template "TEMPLATE_Customer OS Windows" has dependency from trigger "Ping Check Failed on {HOST.NAME}" in template "TEMPLATE_Customer ICMP Ping"
      The two templates "TEMPLATE_Customer OS Windows" & "TEMPLATE_Customer ICMP Ping" are linked.
      But it seems like the dependency is checked before both templates are linked to the host....
      When I separate the templates and link them manually, it works if I link the ICMP template first. It fails with the exact same error, when I link the Windows OS first (for obvious reasons)

      Comment

      Working...