Ad Widget

Collapse

Trigger: Single notification only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ingmar
    Junior Member
    • Aug 2010
    • 5

    #1

    Trigger: Single notification only

    Is there a way to get only one notification for a trigger, instead of a Problem/Ok pair? For some triggers they just don't make sense, e.g. "Server was rebooted" or "DSL connection resynched" - all I need for these is a single notification.
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Originally posted by ingmar
    Is there a way to get only one notification for a trigger, instead of a Problem/Ok pair? For some triggers they just don't make sense, e.g. "Server was rebooted" or "DSL connection resynched" - all I need for these is a single notification.
    In your configuration of actions, you should:
    • add condition Trigger value = "PROBLEM"
    • uncheck "recovery message"


    If you have only one action scenario for all your triggers, you may have to create a new scenario and add conditions to select the triggers you want to manage in each scenario.

    regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • ingmar
      Junior Member
      • Aug 2010
      • 5

      #3
      That's what I was afraid of
      I was hoping there would be some way to define that in the trigger instead (a good place would be the "Event Generation" box having an additional option "Trigger activation only" or some such).

      Thanks anyways!

      Comment

      • James Wells
        Senior Member
        • Jun 2005
        • 664

        #4
        Greetings,
        Originally posted by ingmar
        Is there a way to get only one notification for a trigger, instead of a Problem/Ok pair?
        Sure. It's not simple, but there are a couple different ways to do it. Personally, the way I prefer to do it is have an action for problem with fairly generic limiters, then a more strict one for recoveries.

        For example, my problem action doesn't care what host group or application the trigger is coming from, but my recovery will not notify on alerts in the '__SILENT__' host group.

        And before you ask, I use the '__' to help ensure that when I look at the list of host groups, it shows up near the bottom of the list.
        Unofficial Zabbix Developer

        Comment

        • ingmar
          Junior Member
          • Aug 2010
          • 5

          #5
          Solved

          The problem with doing it by host group is that it's specific to certain triggers, not to certain hosts. So for example if the host is a DSL router, it has a trigger for "Router restarted" which I just want a single notification for. It also has a couple other triggers such as "DSL down" for which I want the regular PROBLEM/OK notification pairs. So I can't really filter them by a host group, I need to filter by trigger.

          I've found a solution that works, by setting actions and triggers up like so:
          • One action for Trigger value = PROBLEM
          • One action for Trigger value = OK, except if the trigger name contains my keyword "SINGLENOTIFY" (trigger description -> not like)
          • Append my keyword "SINGLENOTIFY" to all Triggers where I just want a PROBLEM and no OK notification.


          Screenshot to illustrate Action config.
          Attached Files

          Comment

          • danrog
            Senior Member
            • Sep 2009
            • 164

            #6
            This is how we solved single alerts as well. Based on the trigger description (but we have multiple groups of admins and we also filter at the group level too).

            Comment

            Working...