Ad Widget

Collapse

[1.4.2] Zabbix sends message trigger=off when it didn't send trigger=on

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • movenext
    Junior Member
    • Aug 2007
    • 2

    #1

    [1.4.2] Zabbix sends message trigger=off when it didn't send trigger=on

    Hi all,

    I'm using Zabbix 1.4.2 and have set dependencies up (using the interface). It's all working properly; I have a router, switch and some servers. When the router goes down, all I get is the mail from zabbix that the trigger=on. Nothing is being send about the server being unreachable. This is the expected behaviour.

    When the router comes back up, zabbix sends a message about the router being up (trigger=off) which is cool, but zabbix also sends messages about the triggers of the servers being off. But Zabbix never sent a message they were on (due to dependencies of course). How come it sends them when the trigger is on? I would expect just one message again about the router being available.

    Is this supposed to work like this or am I missing something?

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

    #2
    Yes, it is supposed to work this way. Only if the router trigger is ON (down), ZABBIX won't send any messages about availability of servers behind the router.

    When the router is back, ZABBIX starts sending new messages generated by the servers.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • michaeltje
      Member
      • Aug 2007
      • 44

      #3
      Originally posted by Alexei
      Yes, it is supposed to work this way. Only if the router trigger is ON (down), ZABBIX won't send any messages about availability of servers behind the router.

      When the router is back, ZABBIX starts sending new messages generated by the servers.
      isnt there a way to get rid of it? i have the same problem. I just want 1 message, just an example i have a server park of 100 servers. i monitor them with zabbix and the connection between the office and the server park drops. It will send me a nice message about the gateway being down (Perfect!) Then when the connection restores i will get 100 messages, i dont think thats the way how it should work?

      Thanks!

      Comment

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

        #4
        Originally posted by michaeltje
        isnt there a way to get rid of it? i have the same problem. I just want 1 message, just an example i have a server park of 100 servers. i monitor them with zabbix and the connection between the office and the server park drops. It will send me a nice message about the gateway being down (Perfect!) Then when the connection restores i will get 100 messages, i dont think thats the way how it should work?
        I agree, this has to be improved.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • michaeltje
          Member
          • Aug 2007
          • 44

          #5
          Originally posted by Alexei
          I agree, this has to be improved.
          that would be great! When do u think u will improve this?

          Comment

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

            #6
            Originally posted by michaeltje
            that would be great! When do u think u will improve this?
            It depends on many things, priorities, etc. It may even happen in 1.4.3, no promises.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • michaeltje
              Member
              • Aug 2007
              • 44

              #7
              Originally posted by Alexei
              It depends on many things, priorities, etc. It may even happen in 1.4.3, no promises.
              I understand, its great enough that u will fix it! If u could keep us informed about this, because we really wait for this feature

              Thanks for the great support!

              Comment

              • movenext
                Junior Member
                • Aug 2007
                • 2

                #8
                Hi all,

                Thanks for your responses!

                Maybe you could add a check to the actions which only allows an action to be sent (trigger=off) when a previous action is sent for trigger=on. There already is a list of sent actions, so this should be possible.

                Anyway, thanks in advance for improving Zabbix even more! Let me know if I can be of any help.

                Comment

                • Andreas Bollhalder
                  Senior Member
                  Zabbix Certified Specialist
                  • Apr 2007
                  • 144

                  #9
                  Hello

                  I have a similar "problem" which I tried to get to work. I like to monitor our server and there services and net ports. To minimize messages sent, I made dependencies for a linux host like:

                  "SSH Port" depend on "SSH Service" depend on "ZABBIX Agent" depend on "ICMP Ping". With this, I get the following messages when
                  1. ICMP Ping down:
                    ICMP Ping ON and OFF, ZABBIX Agent OFF
                  2. ZABBIX Agent down:
                    ZABBIX Agent ON and OFF
                  3. SSH Service down:
                    SSH Service ON and OFF
                  4. SSH Port down:
                    SSH Port ON and OFF

                  I like to get rid for the message "ZABBIX Agent OFF" of list point 1.

                  I have implemented the items like
                  Code:
                  Description:		Key:		Update Interval
                  n_icmp-ping		icmpping	30
                  v_zabbix-agent-ping	agent.ping	30
                  s_ssh-process-count	proc.num[sshd]	60
                  n_tcp-ssh-reachable	ssh		60
                  and the triggers like
                  Code:
                  Name:					Expression:
                  host N: Ping is not returned		({host:icmpping.max(#3)}<1)|(({TRIGGER.VALUE}=1)&({host:icmpping.min(#14)}>0))
                  
                  host V: Zabbix agent ping not received	({host:agent.ping.nodata(180)}=1)|(({TRIGGER.VALUE}=1)&({host:agent.ping.count(300)}<9))
                  Depends on 
                  host N: Ping is not returned
                  
                  host S: OpenSSH is not running		({host:proc.num[sshd].max(#5)}<1)|(({TRIGGER.VALUE}=1)&({host:proc.num[sshd].min(#4)}>0))
                  Depends on 
                  host N: Ping is not returned
                  host V: Zabbix agent ping not received
                  
                  host N: SSH is not reachable		({host:ssh.max(#7)}<1)|(({TRIGGER.VALUE}=1)&({host:ssh.min(#2)}>0))
                  Depends on
                  host N: Ping is not returned
                  host V: Zabbix agent ping not received
                  host S: OpenSSH is not running
                  So far, so well.

                  The problem I have is, that the second part of the trigger expression for the "ICMP Ping"
                  Code:
                  (({TRIGGER.VALUE}=1)&({host:icmpping.min(#14)}>0))
                  doesn't work. The triggers don't stay on TRUE for the expected time, it change immediatly to FALSE. Because the trigger for "ZABBIX Agent" is TRUE too, I get the OFF message when it changes to FALSE.

                  I would be happy if someone can point me back to the road.

                  Andreas
                  Last edited by Andreas Bollhalder; 04-09-2007, 14:55.
                  Zabbix statistics
                  Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

                  Comment

                  • remi
                    Junior Member
                    • Sep 2006
                    • 11

                    #10
                    Hi,

                    You could try change:
                    Code:
                    (({TRIGGER.VALUE}=1)&({host:icmpping.min(#14)}>0))
                    to:
                    Code:
                    (({TRIGGER.VALUE}=1)&({host:icmpping.max(#14)}>0))
                    This way, the trigger will go off if the last 14 values are all >0 instead of one of the last 14.

                    grtx,remi

                    Comment

                    • Andreas Bollhalder
                      Senior Member
                      Zabbix Certified Specialist
                      • Apr 2007
                      • 144

                      #11
                      Originally posted by remi
                      Hi,

                      You could try change:
                      Code:
                      (({TRIGGER.VALUE}=1)&({host:icmpping.min(#14)}>0))
                      to:
                      Code:
                      (({TRIGGER.VALUE}=1)&({host:icmpping.max(#14)}>0))
                      This way, the trigger will go off if the last 14 values are all >0 instead of one of the last 14.

                      grtx,remi
                      Hello remi

                      Thank a lot for the suggestion.

                      I made the test and changed the min to max. But then, the trigger stays forever on TRUE. I'm a little bit confused now.

                      As I read the docs:
                      Code:
                      max.(sec | #num) => Maximal value for period of time.
                      it should return THE highest value of the time period or the specified number of values. So the trigger would stay on TRUE until there are 14 values of "0". But then, the first part of the expression would evaluate to TRUE.

                      I don't know, why the min function doesn't work.

                      Now, there is smoke over my head.

                      Andreas
                      Zabbix statistics
                      Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

                      Comment

                      • Andreas Bollhalder
                        Senior Member
                        Zabbix Certified Specialist
                        • Apr 2007
                        • 144

                        #12
                        Have changed the trigger to
                        Code:
                        ({host:icmpping.max(#3)}=0)|(({TRIGGER.VALUE}=1)&({host:icmpping.min(#14)}=0))
                        and this seems to work fine. I definitly need some vacation right now.

                        Andreas
                        Zabbix statistics
                        Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

                        Comment

                        • michaeltje
                          Member
                          • Aug 2007
                          • 44

                          #13
                          Originally posted by remi
                          Hi,

                          You could try change:
                          Code:
                          (({TRIGGER.VALUE}=1)&({host:icmpping.min(#14)}>0))
                          to:
                          Code:
                          (({TRIGGER.VALUE}=1)&({host:icmpping.max(#14)}>0))
                          This way, the trigger will go off if the last 14 values are all >0 instead of one of the last 14.

                          grtx,remi
                          Try this ({host:icmpping.max(60)}<1)

                          Comment

                          • michaeltje
                            Member
                            • Aug 2007
                            • 44

                            #14
                            Originally posted by Alexei
                            It depends on many things, priorities, etc. It may even happen in 1.4.3, no promises.
                            Is there anything you can tell us about yet?
                            Thanks!

                            Comment

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

                              #15
                              Originally posted by michaeltje
                              Is there anything you can tell us about yet?
                              Thanks!
                              It is already in pre 1.4.3.
                              Alexei Vladishev
                              Creator of Zabbix, Product manager
                              New York | Tokyo | Riga
                              My Twitter

                              Comment

                              Working...