Ad Widget

Collapse

Trigger Threshold showing in Notification

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kaste
    Junior Member
    • Apr 2015
    • 4

    #1

    Trigger Threshold showing in Notification

    Hello,

    in my company we are using zabbix to monitor a few unix and windows servers and most of the things are working fine. Now the developers using the Windows servers wanted to get notifications when there is something wrong. That was easily done, they were getting there messages and everybody was happy. But now they got the idea that it would be great if they could see the trigger threshold in the notification. I thought that should be easy but until now i haven't found a satisfying way to do it.
    For example i have the expression from the Windows OS template:
    {Template OS Windowsroc.num[].avg(5m)}>300

    If the trigger fires and the notification is send i see the actual value for the number of processes but no value to compare. I can use the macro trigger.expression to get the information (since it is part of the expression) but it would be nice if i could just get the threshold value (300 in my example). It is not such a big thing but it is still annoying.

    Thanks for your help in advance.
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    The way I generally do it is to include the threshold in the trigger name like so:
    Pagefile usage on C: over 95% on {HOST.NAME}

    Then they know immediately before they even open the alert what value is being alerted on.

    Comment

    • kaste
      Junior Member
      • Apr 2015
      • 4

      #3
      Thank you.

      That would be a possibility.

      At first i thought i could realize it by using macros for the thresholds. Then it wouldn't be a problem accessing it later when sending notifications. But to keep it simple i configured actions to become active when there is a problem in a hostgroup and not a single host, and i didn't find a way to dynamically access host specific macros in groupwide actions.
      Beside that it doesn't even makes sense for all triggers/notifications to show the threshold.
      Possible solution for triggers and actions for a single host but not for me.

      So i either go with you solution or i will just use trigger.expression in my notifications because i am lazy and we have much less actions then templates and triggers.

      Comment

      Working...