Ad Widget

Collapse

Unreachable for > x minutes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cbidwell
    Senior Member
    • Aug 2006
    • 127

    #1

    Unreachable for > x minutes

    Is there a way that I can modify this syntax to where if a system is unreachable for x amount of minutes to only alert after that time frame? Say it is unreachable for > 5 minutes only to send out the alert then?

    {Template_Linux:status.last(0)}=2

    Would I say: {Template_Linux:status.last(300)}=2

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

    #2
    {Template_Linux:status.min(300)}=2
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • cbidwell
      Senior Member
      • Aug 2006
      • 127

      #3
      Great! Thank you.

      One more question...is there a way that I can get emailed every 5 or 10 minutes and it tell me in that mail how long the system has been unreachable?

      Comment

      • elvar
        Senior Member
        • Feb 2008
        • 226

        #4
        Originally posted by Alexei
        {Template_Linux:status.min(300)}=2


        I found this very helpful as well. Thank you!

        Comment

        • vhm3
          Junior Member
          • Jun 2008
          • 13

          #5
          Most excellent, and thank you!

          Chip

          Comment

          • elvar
            Senior Member
            • Feb 2008
            • 226

            #6
            Originally posted by elvar
            I found this very helpful as well. Thank you!

            Unfortunately this didn't work the way I thought it would. I would prefer to never receive an alert until any of the unreachables have been unreachable for 5 minutes. After changing the unreachable trigger to status.min with a value of 300 I still was alerted almost instantly.

            Anyone gotten this to work properly?

            Comment

            • bbrendon
              Senior Member
              • Sep 2005
              • 870

              #7
              I don't use status item because I personally believe its redundant. What are the values status returns?

              You can then use the function min/max/nodata/etc for number of polls or for a periods of time.
              Unofficial Zabbix Expert
              Blog, Corporate Site

              Comment

              • elvar
                Senior Member
                • Feb 2008
                • 226

                #8
                Originally posted by bbrendon
                I don't use status item because I personally believe its redundant. What are the values status returns?

                You can then use the function min/max/nodata/etc for number of polls or for a periods of time.

                Can you please paste an example of the nodata function syntax to use for this? I only want to be alerted when it receives no data from the zabbix agent after 5 minutes. Right now there are too many false positives when the network blips for very short periods of time.

                Comment

                • elvar
                  Senior Member
                  • Feb 2008
                  • 226

                  #9
                  There is probably a way to do this with functions but I found a solution that works perfectly for my needs. In the /etc/zabbix/zabbix_server.conf I found the following...

                  # After how many seconds of unreachability treat a host as unavailable
                  UnreachablePeriod=300


                  I'd still like to know the way to do this exact same thing with functions per template.


                  Regards,
                  Elvar

                  Comment

                  • jroberson
                    Senior Member
                    • May 2008
                    • 124

                    #10
                    This is the trigger I use to tell me when a system is unreachable for 5 minutes:
                    Code:
                    ({Template_Windows:status.last(0) }=2)&({Template_Windows:status.nodata(300)}=1)

                    Comment

                    Working...