Ad Widget

Collapse

Issue with Trigger dependencies

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jsalsa
    Junior Member
    • Oct 2006
    • 4

    #1

    Issue with Trigger dependencies

    Hi,

    I'm new to Zabbix, but have practiced quite a lot during the last few days.
    I would like to use Trigger dependencies, but there seems to be an error ...
    Or maybe, I'm the error

    As many on the forum try to do, I'm monitoring Outside servers, and doesn't want to be bothered when BOTH my Internet Connection goes down and thus (because Zabbix cannot ping anymore the Outside Server) my Server on the far internet!

    This works fine ... when Internet connection is down, even if server seems to be down -> No Action taken,
    Overview, and Events show them both red ... which is not maybe the best thing, but at least, no notification !

    BUT, when my internet connection comes back, if the server has really come down in the mean time ... then no Action is triggered ....

    Here are my 2 triggers :
    "Internet Connection is down": {NextHop:icmpping.max(180)}<1
    "Server is down": {Server:icmpping.max(180)}<1 depends on "Internet Connection is down"

    Am I doing something wrong ?

    Thanks a lot for your help !

    JM
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Are you by chance using templates? I ask because there appears to be a bug with templates and dependencies, such that the dependencies do not propagate correctly.
    Unofficial Zabbix Developer

    Comment

    • jsalsa
      Junior Member
      • Oct 2006
      • 4

      #3
      Yes I do use Templates !

      Server is linked to a "NoAgent" Template (which basically just pings)
      But "Internet Connection" is not ... this is a basic host ( almost same config as template for server )

      Let me know if this is the issue !

      Thanks,

      JM

      Comment

      • James Wells
        Senior Member
        • Jun 2005
        • 664

        #4
        Okay, look at the triggers for one of your hosts, look specificall at the dependencies. Make sure that it is dependent on the correct trigger. What I found on mine at work was that it was dependent on the template instead of the network router's ping.
        Unofficial Zabbix Developer

        Comment

        • jsalsa
          Junior Member
          • Oct 2006
          • 4

          #5
          Nope, my "NoAgent" Template ( the one which is linked to my Server) Trigger is linked (through dependancy) to the Host Trigger "Internet Connection is down" ... This is not a second template.

          Maybe I can try to create a Server host without any templates, and sees if this works better ... ?
          So that both Triggers are Hosts Triggers, and not linked to a template.

          will let you know the result !

          Thanks,

          JM

          Comment

          • jsalsa
            Junior Member
            • Oct 2006
            • 4

            #6
            Well I have tried with 2 basic hosts,
            the second one with a trigger which depends on first host.

            As a summary, I shutdown both my Internet Connection
            wait a little bit, then shutdown outside server ...
            and put back Internet Connection ... WITH Server still OFF

            and here is the event I get :
            Internet Connection is down OFF Information
            Server is down ON High
            Internet Connection is down ON Information

            So, I never get any notifications that the Server is NOW down ...

            Any idea guys ?

            JM

            Comment

            • James Wells
              Senior Member
              • Jun 2005
              • 664

              #7
              Not sure what is causing this. Will need to try to re-create the issue and get back to you.
              Unofficial Zabbix Developer

              Comment

              • marc
                Senior Member
                • Oct 2004
                • 146

                #8
                i guess James is right. there is a major bug in propagating trigger deps if using templates. i added about 100 dependencies yesterday, running zabbix 1.1. ZABBIX 1.1.4. unfortunately i havent read the forum earlier. after reading this post today i checked my database..

                iam doomed ;(.
                also there is another bug on the triggers page. if you already have a dependency added for a trigger and just want to update severaty, an php error occurs. thats more or less cosmetically but annoying.

                here some research...

                select count('triggerid_down') from trigger_depends where triggerid_up=10047;
                +-------------------------+
                | count('triggerid_down') |
                +-------------------------+
                | 551 |
                +-------------------------+

                select * from triggers where triggerid=10047;
                +-----------+---------------------+----------------------------------+-----+--------+-------+----------+------------+-----------+----------+-------+------------+
                | triggerid | expression | description | url | status | value | priority | lastchange | dep_level | comments | error | templateid |
                +-----------+---------------------+----------------------------------+-----+--------+-------+----------+------------+-----------+----------+-------+------------+
                | 10047 | {17473}=2|{17474}=0 | Server {HOSTNAME} is unreachable | | 0 | 2 | 5 | 0 | 551 | | | 0 |
                +-----------+---------------------+----------------------------------+-----+--------+-------+----------+------------+-----------+----------+-------+------------+
                1 row in set (0.01 sec)

                select * from functions where functionid=17473;
                +------------+--------+-----------+-----------+----------+-----------+
                | functionid | itemid | triggerid | lastvalue | function | parameter |
                +------------+--------+-----------+-----------+----------+-----------+
                | 17473 | 10061 | 10047 | NULL | min | 120 |
                +------------+--------+-----------+-----------+----------+-----------+
                1 row in set (0.00 sec)

                select hostid from items where itemid=10061;
                +--------+
                | hostid |
                +--------+
                | 10001 |
                +--------+
                1 row in set (0.01 sec)

                any idee how to get this fixed? its a production database maybe someone can supply an sql statement or little sh to find out the real id and update it.

                thanks,
                marc

                Comment

                • akox
                  Junior Member
                  • Sep 2006
                  • 7

                  #9
                  Same issue here

                  I have the same issue here. I'm not using templates on the triggers below.

                  A trigger (IC) is on when the internet connection goes down.
                  A trigger is on when zabbix cannot get the status of a remote host, but this trigger depends on the previous one .

                  if
                  1) the internet connections goes down
                  2) The host goes down
                  3) the internet connections recoves
                  4) the host is still down
                  5) the host goes finally up

                  I don't get any notification about the host being down after the step 3. I get a notification that the host is UP when (5) happens.

                  From my point of view, zabbix should implement a delayed action mechanism. An action trigger by an trigger (A) should not be discarded if it depends on a trigger (B) but added to a list. When the trigger (B) changes status and if the value of trigger (A) remains the same then the delayed action is executed.

                  Aris

                  P.S. Is there any workaround for this problem?

                  Comment

                  Working...