Ad Widget

Collapse

Can somebody explain dependencies?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dordal
    Junior Member
    • Aug 2007
    • 1

    #1

    Can somebody explain dependencies?

    Folks- After reading all I can, I'm still confused about dependencies. I have a setup where I have a core router ('core') and three servers... 'bob', 'jim' and 'todd', each of which is running a few services that need to be monitored. Zabbix is monitoring from the outside.

    Right now, if the core router goes down, I get a million alerts... 'core' is not pingable, bob/jim/todd are not pingable, SSH is down on all the servers, HTTP is down on all the servers, etc. etc.

    How can I set it up so that I just get a single alert if 'core' goes down, and if one of bob/jim/todd goes down, I just get a single alert for that (not for all the services too)? I know its got something to do with dependencies, but I can't figure it out....
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Bob's trigger "Bob is down" should depend on trigger "Core is down", so when the core is down you won't be notified about the bob unavailability.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • michaeltje
      Member
      • Aug 2007
      • 44

      #3
      How should the severity's be set in this case? because i still have the same situation. If they all have the severity should i get one message?

      Comment

      • brian.pontius
        Junior Member
        • Apr 2007
        • 6

        #4
        Bob's trigger "Bob is down" should depend on trigger "Core is down", so when the core is down you won't be notified about the bob unavailability.
        Are you saying that when the "Core is down" the trigger is set to "TRUE" or "FALSE".

        I immediately think a dependency as needing to be "TRUE" but from your example and I am starting to think the "Bob is down" trigger is dependent on the "Core is down" trigger NOT being "triggered" (set to "TRUE").

        Thanks

        Comment

        • bbrendon
          Senior Member
          • Sep 2005
          • 870

          #5
          Since there was a prior discussion about this, I tried the dependencies using the GUI again without success. Here is my config.

          Event History:
          2007.Aug.30 00:29:53 x.system02 Unresponsive ON High
          2007.Aug.30 00:28:20 x.system01 Unresponsive ON High
          2007.Aug.30 00:16:53 x.office-inet-router Unreachable ON Not classified

          I received emails about the system 01 and 02 triggers going on when I shouldn't have because both of those triggers are set to depend on the router unreachable trigger.
          Unofficial Zabbix Expert
          Blog, Corporate Site

          Comment

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

            #6
            I do not expect any bugs here, however I registered this as a possible bug. It will be re-tested and I will report about any progress.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

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

              #7
              Originally posted by infinity005
              I received emails about the system 01 and 02 triggers going on when I shouldn't have because both of those triggers are set to depend on the router unreachable trigger.
              Are you running 1.4.x?
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • michaeltje
                Member
                • Aug 2007
                • 44

                #8
                Originally posted by Alexei
                Are you running 1.4.x?
                Anything new on the dependencies alexei? im running 1.4.2

                greetz

                Comment

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

                  #9
                  Trigger dependencies are fixed in the latest pre 1.4.3 code. I am sure it works fine now. The Manual was also be updated to descibe new functionality.
                  Alexei Vladishev
                  Creator of Zabbix, Product manager
                  New York | Tokyo | Riga
                  My Twitter

                  Comment

                  • michaeltje
                    Member
                    • Aug 2007
                    • 44

                    #10
                    Originally posted by Alexei
                    Trigger dependencies are fixed in the latest pre 1.4.3 code. I am sure it works fine now. The Manual was also be updated to descibe new functionality.
                    Wow that sounds great man! I will test it on monday and report back to you soon!

                    Comment

                    • tighep
                      Senior Member
                      • Dec 2007
                      • 124

                      #11
                      Running 1.4.4, I've got two triggers for a host, one checks that the agent is up, one checks to see if it's pingable. The agent check is dependent on the ICMP ping, but when I reboot the server, both notifications occur. Is this a desired behavior, or did I set something up incorrectly?

                      Comment

                      • kberrien
                        Member
                        • Mar 2007
                        • 43

                        #12
                        Further dependencie questions.

                        Originally posted by Alexei
                        Trigger dependencies are fixed in the latest pre 1.4.3 code. I am sure it works fine now. The Manual was also be updated to descibe new functionality.
                        Looking at the 1.4.3 release notes, it says "better dependencies". Were they not working in pre 1.4.3? "Better" sounds like they were working, but now better? I was running pre 1.4.3 until this week, and I never had dependencies work. You say they were "fixed" in 1.4.3, so now that I'm at 1.4.4 I hope they'll work, I'll have to test it this week.

                        Some questions though, the manual only gives a host 1, host 2 example.

                        1. When you set a trigger dependency I'm assuming it means WHEN dependency value is true (ON). This is obvious, but like I said, I never had dependencies actually work before either.

                        2. Are they nested. Example, lets say using ping test.

                        Traffic path is...
                        WAN DEVICE (A) --> CORE ROUTER (B) --> HOST (C)

                        Trigger for A = no dependency
                        Trigger for B = depends on A
                        Trigger for C = depends on B

                        So if A fails, I shouldn't get an alarm for B (per dependency setting), but will I not get an alarm for C because of nested logic. Or do I have to explicitly define dependencies for C to be A + B? If there is nesting, is there a limit?

                        3. I have situations with redundant network links to sites. So if I have a core router/switch at that site, if I set redundancies on that switch trigger of LINK 1 + LINK 2 how will the software behave? If the switch trigger goes ON will it check for LINK1 AND LINK2 or will it do LINK1 or LINK2 or will it do LINK1 and/or LINK2?

                        Thanks.

                        Comment

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

                          #13
                          1. Yes

                          2. Yes, the dependencies are nested and there is not limit of the depth. You will not get an alarm if at least one of nested triggers is TRUE.

                          3. LINK1 OR LINK2
                          Alexei Vladishev
                          Creator of Zabbix, Product manager
                          New York | Tokyo | Riga
                          My Twitter

                          Comment

                          • zabbix_zen
                            Senior Member
                            • Jul 2009
                            • 426

                            #14
                            Trigger Dependencies behaviour

                            Sorry to revive this old thread but I'm facing some problems using dependencies to fit my needs.

                            Zabbix's receiving some BD queries and I need to receive alerts either when some Triggers are ON
                            - "0% metrics for ALL platforms"
                            - "0% metrics for platform1"
                            - "0% Availlability for platform1"
                            - "0% Successful Terminations for platform1"

                            considering
                            For A: {host:module.avail1.last(0)}=0
                            T1: {host:module.term1.last(0)}=0
                            A2: {host:module.avail2.last(0)}=0
                            ....

                            I have these Triggers:
                            Code:
                            "DB is returning 0% metrics for ALL Platforms"
                            A1 & T1 & A2 & T2 & A3 & T3 & A4 & T4
                            
                            "DB is returning 0% metrics for Platform1"
                            Expression: A1 & T1
                            Depends on:
                             DB is returning 0% metrics for ALL Platforms
                            
                            "DB is returning 0% module Availability for Platform1"
                            Expression: A1
                            Depends on:
                             DB is returning 0% metrics for Platform1
                            So in a scenario both Successful Terminations and Availability values are 0 in Platform1 I should only receive the Problem+Recovery messages like:"0% metrics for platform1"

                            Problem is......
                            besides that, my Inbox is still getting flooded with messages both from
                            "0% Availlability for platform1"
                            and
                            "0% Successful Terminations for platform1"

                            What am I doing wrong?

                            Comment

                            • zabbix_zen
                              Senior Member
                              • Jul 2009
                              • 426

                              #15
                              Trigger dependencies work for any item?

                              Anyone with a good dependencies understanding can help me out here?

                              Thanks

                              Comment

                              Working...