Ad Widget

Collapse

Retry Check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mattsmith
    Member
    Zabbix Certified Specialist
    • Aug 2010
    • 33

    #1

    Retry Check

    Hi All,

    I'm new to Zabbix and am currently in the process of migrating from Nagios, I have a quick question. In Nagios you can set a retry check interval and a number of check attempts.

    Example you could try and ping ServerA if ServerA didn't respond the check attempt would be incremented by one, a retry check interval would then kick in for example 30 seconds. After this interval ServerA would be checked again. if this check failed 3 times a notification is sent. Is this possible with zabbix?

    Is this set in the trigger or the action, possibly the esculation part?

    I have also read the post below, this is exactly what i am looking for




    Many Thanks
    matt
    Last edited by mattsmith; 10-08-2010, 10:50.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    that is not currently supported in zabbix - and given the flexibility of trigger expressions, it might not even be such a great feature

    on the other hand, it might be possible to recreate with actions + api callbacks, but that might be a bit hackish then
    Zabbix 3.0 Network Monitoring book

    Comment

    • mattsmith
      Member
      Zabbix Certified Specialist
      • Aug 2010
      • 33

      #3
      Hi,

      Firstly thanks for your quick response.

      I completely agree trigger expressions are very flexible. All that I am after is a trigger that will check the value of the last 3 ping response times and if all 3 are greater than 500ms change state/alert.

      Do you think that this is possible with the current selection of triggers?

      Matt

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        min(#3)>500 or similar.
        see http://www.zabbix.com/documentation/...gger_functions for more detail
        Zabbix 3.0 Network Monitoring book

        Comment

        • mattsmith
          Member
          Zabbix Certified Specialist
          • Aug 2010
          • 33

          #5
          Cool, that's what im looking for.

          Can you confirm that this would check the last 3 values for being over 500ms or would i need to add some &'s in.

          i.e
          min(#3)>500&min(#2)>500&min(#1)>500

          Thanks

          Comment

          • richlv
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2005
            • 3112

            #6
            min(#3)>500 should suffice - if you look at the manual, that's minimum from the last 3 values. of course, make sure to use correct trigger syntax with host & item reference etc
            Zabbix 3.0 Network Monitoring book

            Comment

            • mattsmith
              Member
              Zabbix Certified Specialist
              • Aug 2010
              • 33

              #7
              That's working a treat, thanks for your help.

              Are you able to assist with a problem that I have with getting an external script working with zabbix?

              The output of my script is as below, this has an exit status of 3

              Error: value "blah blah" not found | 2

              The number 2 is the time in seconds that the script took to execute. (this needs to be graph-able)

              This script also has a exit status of 3 (previously used by nagios) to flag up the error state

              and the text "Error... " was then used as the error message.

              Is it possible to use this output with zabbix? or will i need to create separate triggers for each element? Nagios used the | symbol as its delimiter to separate the graphing data.

              Many Thanks
              Matt

              Comment

              • richlv
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Oct 2005
                • 3112

                #8
                it's best to start a new thread with a new question, otherwise it all becomes a bit too messy and hard to follow
                Zabbix 3.0 Network Monitoring book

                Comment

                Working...