Ad Widget

Collapse

Min function problems.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • burtininkai
    Junior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 25

    #1

    Min function problems.

    Hi,

    Created triggers

    {UCB_Windows_servers:icmpping.min(300)}=0
    {UCB_Windows_servers:icmpping.min(#5)}=0

    pinging host every 1 minute.

    If host's ping fails getting trigger up, but min function is not working, it's triggered after first fail, is it my problem, or zabbix?

    Version of zabbix 1.8.2
    Everithing worked with version 1.8.0.
  • burtininkai
    Junior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 25

    #2
    Fcuk, checked with other trigger seems like all is ok. but then why ping trigger is not working?

    Comment

    • alixen
      Senior Member
      • Apr 2006
      • 474

      #3
      Hi,

      Originally posted by burtininkai
      {UCB_Windows_servers:icmpping.min(300)}=0
      {UCB_Windows_servers:icmpping.min(#5)}=0

      pinging host every 1 minute.

      If host's ping fails getting trigger up, but min function is not working, it's triggered after first fail, is it my problem, or zabbix?
      With min function, trigger will be up as soon as one ping fails.
      If you want that triggers goes up only if 5 successive ping fail, you should use max function.

      Regards,
      Alixen
      http://www.alixen.fr/zabbix.html

      Comment

      • burtininkai
        Junior Member
        Zabbix Certified Specialist
        • Sep 2009
        • 25

        #4
        Originally posted by alixen
        Hi,



        With min function, trigger will be up as soon as one ping fails.
        If you want that triggers goes up only if 5 successive ping fail, you should use max function.

        Regards,
        Alixen
        Ok, will test this in few minutes, but why min is working ok for agent item service[]?

        Comment

        • burtininkai
          Junior Member
          Zabbix Certified Specialist
          • Sep 2009
          • 25

          #5
          Seems like everithing works ok. Thank You

          Can You please explain me when to use min and when max?

          Are these expressions correct?

          {Router_simple_check:icmppingsec.max(#15)}>50
          {Router_simple_check:icmppingloss.max(#15)}>1

          Comment

          • alixen
            Senior Member
            • Apr 2006
            • 474

            #6
            Originally posted by burtininkai
            Seems like everithing works ok. Thank You

            Can You please explain me when to use min and when max?
            It depends on what you want to check.
            In your case with icmpping, if you use:
            {UCB_Windows_servers:icmpping.min(#5)}=0
            Your trigger goes up as soon as a single value is 0 and stays up until you get 5 successive 1.
            With:
            {UCB_Windows_servers:icmpping.max(#5)}=0
            Your trigger goes up when you get 5 successive 0 and goes down as soon as you get a single 1.

            Originally posted by burtininkai
            Are these expressions correct?

            {Router_simple_check:icmppingsec.max(#15)}>50
            {Router_simple_check:icmppingloss.max(#15)}>1
            If you want to check if ANY value in last 15 ones is above threshold, they are correct.
            If you want to check if ALL values in last 15 ones are above threshold, they are NOT correct.

            Regards,
            Alixen
            http://www.alixen.fr/zabbix.html

            Comment

            • burtininkai
              Junior Member
              Zabbix Certified Specialist
              • Sep 2009
              • 25

              #7
              Seems to be almost clear.

              Originally posted by alixen
              If you want to check if ANY value in last 15 ones is above threshold, they are correct.
              If you want to check if ALL values in last 15 ones are above threshold, they are NOT correct.
              So how could I check ALL values?

              Comment

              • alixen
                Senior Member
                • Apr 2006
                • 474

                #8
                Originally posted by burtininkai
                Seems to be almost clear.



                So how could I check ALL values?
                Replace max by min.

                Regards,
                Alixen
                http://www.alixen.fr/zabbix.html

                Comment

                • burtininkai
                  Junior Member
                  Zabbix Certified Specialist
                  • Sep 2009
                  • 25

                  #9
                  Thanx, all is working now

                  Comment

                  Working...