Ad Widget

Collapse

Action on template trigger not executed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Laurent
    Junior Member
    • Mar 2013
    • 4

    #1

    Action on template trigger not executed

    Hi all,

    I'm experiencing a little problem here...

    My company has a number of cameras but their status changes often, so I want to set a delay in order not to get an email every 10 seconds.

    The cameras are linked to a template called "Camera's". This template has a trigger called "Camera {HOSTNAME} is down".
    I want to recieve an email if a camera (ONLY a camera, not for other hosts) is down for more then 2 minutes. This is what I've set up:



    Obviously, I can't delete the default trigger, otherwise I wouldn't be noticed about problems of other hosts.

    But the action is never executed. But I DO get an email immediately, not after 2 minutes. And even after 2 minutes, I don't get an amail, the action is never executed. Zabbix doesn't recognize the trigger name (I think).
    What am I doing wrong here?

    THANK YOU VERY MUCH for your help!
    Attached Files
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    I recommend you review the Configuration->Triggers section of the manual. What you're trying to do is covered there.

    Basically, don't try and avoid spurious alerts by altering the actions. Instead, alter your triggers so that they only fire when you want them to fire.

    For an item that functions like a service check (returns 0 when unavailable, 1 when available), you likely want something like

    {your_template_name:your_item_key}.max(2m)<1

    as your trigger. In other words if the maximum value for a 2 minute period is less than 1, then there's a problem. You could also use #2, to instead mean 2 successive checks of the item, at whatever frequency you have that set to.

    Comment

    Working...