Ad Widget

Collapse

Value mapping in notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dreas
    Member
    • Aug 2007
    • 89

    #1

    Value mapping in notifications

    A search on this forum revealed 0 topics about value maps. I have several triggers that send an email notification when something is wrong. This works fine. I want the value of the error however included in the notification. That way I can quickly see what is possibly going wrong. Right now I just get "Trigger Test: ON" or "Trigger Test: OFF" but it should be "Trigger Test: ON (1 TriggerTestValue1)" and "Trigger Test: OFF (0 TriggerTestValue0)".

    How can the value mappings be added to the notifications? They show fine under Latest data.
  • stkr
    Junior Member
    • Feb 2007
    • 18

    #2
    I have the same question. It is possible to send the value mapping code in an action notification.

    e.g. value map name = FTP Server

    Value: 1 => "Up"
    Value: 0 => "Down"

    action mail:

    FTP STATUS: "Down" (0)


    I use version 1.1.6
    thx for help

    stkr

    Comment

    • stkr
      Junior Member
      • Feb 2007
      • 18

      #3
      I found the solution

      In the Message field of New Action write e.g.:

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

      This gives the output of the value map.

      Comment

      Working...