Ad Widget

Collapse

how to create a trigger that evaluates an items for two last reads?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • theologu
    Junior Member
    • Dec 2007
    • 23

    #1

    how to create a trigger that evaluates an items for two last reads?

    Hello folks,

    I am trying to monitor some Cisco Routers and I need to define a trigger for device availability, but to be activated only if the check is true for the last two reads...

    For example I have an item with icmpping that runs at every 5 minutes for that device. Ok, I create a trigger with a key icmpping.last(0)=0 BUT I want something like "if the item is the two last times 0 then activate the trigger" or "if that host does not respond to ping two consecutive times, alert me" Is there an expression for this?

    Thanks!
    Last edited by theologu; 19-12-2007, 21:12.
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    There are in fact several ways to do this. Try to look in the bottom of this page, there are some examples on how to make different triggers:
    http://www.zabbix.com/manual/v1.1/config_triggers.php

    Comment

    • offline
      Junior Member
      • Dec 2007
      • 4

      #3
      i do {google.com:icmpping.min(360)}=0

      or

      {google.com:icmpping.min(#3)}=0


      or either

      {google.com:icmpping.max(360)}=0


      but i doesnt work. The item triggered whenever first change in value noticed.

      I use Zabbix 1.4.4

      Comment

      • offline
        Junior Member
        • Dec 2007
        • 4

        #4
        It is a bug or im doing something wrong?

        Comment

        • cstackpole
          Senior Member
          Zabbix Certified Specialist
          • Oct 2006
          • 225

          #5
          How often is it checking? Will the last three checks be within 5 minutes? If so you should be able to try something like count or avg.
          What if you try:
          {google.com:icmpping.count(360,0,"eq"}>2

          I don't know if that will help you without knowing a bit more. Look through page 117 (well it starts on that page) of the Zabbix manual (Release 12 is the latest) for more info.

          Comment

          Working...