Ad Widget

Collapse

Can't nest dependencies? will 1.4 solve?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kberrien
    Member
    • Mar 2007
    • 43

    #1

    Can't nest dependencies? will 1.4 solve?

    Using v1.1.7, just saw tonight that 1.4 is out, perhaps there are improvements in this area?

    Here is my problem, I have 2 point to point wireless units on a tower, and a one to many access unit. I want to set the 2 point to point units as dependencies on the trigger of the access unit (all ping tests). I made triggers for the PP units, which both have an identical dependency (the path to the zabbix server).
    All is good so far.

    So I try to set the following. Create a trigger for the access unit

    Name: {HOSTNAME} Offline (ping for 5 min)
    Expr: {AU_CH22:icmpping.max(300)}<1

    I've got both the PP units as dependencies which carry in their identical dependency, which generates the error.

    [ERROR:Cannot update trigger]

    SQL error: Duplicate entry '12369-12370' for key 1
    Query: insert into trigger_depends (triggerid_down,triggerid_up) values (12369,12370)

    Apparently you can't nest dependencies if the linked triggers have a common dependency? It saves in all, but will it function correctly?

    Another annoyance, which I brought up here


    You also get an error if you create a trigger that uses a template thats identical to a template in a dependency. I've gotten around this by deleting the template create trigger, and manually making a new one using the hostname rather than the template name in the expression. But of course, it'll create tons of work making individual triggers.
  • kberrien
    Member
    • Mar 2007
    • 43

    #2
    Ala v1.4

    Finished off upgrade to v1.4, and I see now the application does not carry in the nested dependencies from other triggers (and thus not the error if there is an identical dependency on 2 triggers).

    I double checked the v1.4 manual (007), and its very light in the area of dependencies. I'm assuming the dependencies chain back down, thus all nested dependencies have to be in effect for a higher level trigger to activate.

    a hypothetical example:

    Zabbix Serv --- Switch --- Router ---- Host

    Trigger for Switch - no depend
    Trigger for Router - depends: switch
    Trigger for Host - depends: router

    So while the trigger for Host only shows router as a dependency, zabbix is really holding router + switch as dependencies in effect in the case of of the host trigger.

    I'm assuming this is how it works, and I don't need to implicitly add switch to the host template? Because prior to v1.4, since the gui carried (or tried too) the related dependencies in... I just want to make sure.

    btw: v1.4 looks great! Really psyched of the apparent improvements in the dependency area.

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Originally posted by kberrien
      a hypothetical example:

      Zabbix Serv --- Switch --- Router ---- Host

      Trigger for Switch - no depend
      Trigger for Router - depends: switch
      Trigger for Host - depends: router

      So while the trigger for Host only shows router as a dependency, zabbix is really holding router + switch as dependencies in effect in the case of of the host trigger.

      I'm assuming this is how it works, and I don't need to implicitly add switch to the host template?
      You are absolutely right. No need to define the extra dependendency, ZABBIX will take care of the nested stuff.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • kberrien
        Member
        • Mar 2007
        • 43

        #4
        Thanks

        Ok, thanks. Kinda a stupid question, but it seemed like v1.1.7 needed it defined as the GUI tried to make it that way...

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          I modified (well, significantly improved) processing of trigger dependencies. Please try pre 1.4.3 code available from www.zabbix.com/developers.php or wait for an official release. ZABBIX Manual is already updated.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          Working...