Ad Widget

Collapse

Notifications after 2 checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HeadQuaker
    Member
    • Jul 2015
    • 58

    #1

    Notifications after 2 checks

    Hi,

    I've made an external script to check routes to ours differents sites in Europe.

    It allows us to check if the line is on the backup or not.

    Sometimes I've got some wront notification maybe because the script does not respond too quick.

    Is it possible to setup zabbix that a notification is send after two checks?

    I mean:

    First Check every 120s.
    If OK, next check in 120s
    If NOK, a second check is made to be sure there is an issue.
    If NOK bis, send a notification.

    The trigger is now like this:

    {x.x.x.x:testRoute_result.sh[{$IP},{$HOPE},{$WAN}].str("NOK")}=1

    The result is like:

    The connection to xxx is NOK.

    More Information

    Trigger: Check Route + Result
    Trigger status: NOK
    Trigger severity: High

    Value: NOK

    traceroute to x.x.x.x (to x.x.x.x), 5 hops max, 40 byte packets using UDP
    1 y.y.y.y 1.243 ms
    2 z.z.z.z 2.565 ms
    3 a.a.a.a 4.253 ms
    4 b.b.b.b 19.964 ms
    5 x.x.x.x 29.075 ms
  • acropia
    Junior Member
    • Mar 2015
    • 26

    #2
    For what you want to achieve you can two things:
    1. The # operator on a trigger
    2. Use multi-step Action Operations


    With the # operator you can define a item only will be trigger after two times exceeding the threshold (#2).

    The other thing is Action Operations:

    In Zabbix Web, go to: Configuration / Actions / Triggers (top right).

    Here you define which action will be executed when and item exceeds it's threshold (trigger).

    When you create an action, you define a Name, some conditions (for example: Not in mainenance, Trigger value=Problem). On the last tab you can add Action Operations.

    There you could send for example a mail message for the first 2 steps (each 60 seconds). And an other Operation which will send you a SMS on step 3.
    If you route is up again in the first 120 secs, it only will be reported by mail. If it still fails after 120 secs, the SMS will be send...

    Two different approaches for quite different situations.

    Comment

    • HeadQuaker
      Member
      • Jul 2015
      • 58

      #3
      Thanks for your Help, will try in the next days.

      Comment

      Working...