Ad Widget

Collapse

Custom email actions based on STATUS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dstubbs
    Junior Member
    • Oct 2006
    • 11

    #1

    Custom email actions based on STATUS

    I would like to recieve custom emails depending on the status of a trigger. For example when the STATUS of a trigger is ON, I would like to have email sent with a subject of - WARNING: {TRIGGER.NAME}. When the problem has fixed, the subject would be - CLEARED: {TRIGGER.NAME}.

    The ON/OFF can be somewhat confusing at times and maybe misinterpreted.

    Is this possible?
  • peter_field
    Member
    • Jun 2006
    • 71

    #2
    Use two actions

    The way I'd tackle this is to create two actions.

    Action 1:
    Subject: WARNING:{TRIGGER.NAME}
    Message:
    {TRIGGER.NAME}: {STATUS}
    {DATE} {TIME}
    Trigger key: {TRIGGER.KEY}
    Value: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
    Host: {HOSTNAME}

    Set the following conditions:
    Trigger value = ON
    Trigger severity >= AVERAGE (or whatever other conditions you want)

    Action 2:
    Subject: CLEARED:{TRIGGER.NAME}
    Message:
    {TRIGGER.NAME}: {STATUS}
    {DATE} {TIME}
    Trigger key: {TRIGGER.KEY}
    Value: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
    Host: {HOSTNAME}

    Set the following conditions:
    Trigger value = OFF
    Trigger severity >= AVERAGE (or whatever other conditions you want)

    This should work, and its probably not a bad idea. In my action message I have the following text to clarify:
    ON = Problem is occurring.
    OFF = Problem has been rectified.
    I might change to this idea, rather than a single action.

    Comment

    • dstubbs
      Junior Member
      • Oct 2006
      • 11

      #3
      Thanks Peter

      Thanks Peter!

      Worked like a charm!

      Comment

      • MrRobbert
        Member
        • Nov 2006
        • 50

        #4
        Hi all..


        Where can i fill in this:

        Trigger key: {TRIGGER.KEY}
        Value: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
        Host: {HOSTNAME}

        Trigger key: {TRIGGER.KEY}
        Value: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
        Host: {HOSTNAME}


        I cant see those...

        Greets Robbert

        Comment

        Working...