Ad Widget

Collapse

Log file monitoring - Email with localized string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexandreroble
    Junior Member
    • Jun 2018
    • 9

    #1

    Log file monitoring - Email with localized string

    Hi!

    I've set up log monitoring for a Linux server, a trigger, and an email notification if the string is found.

    Is there a way to put the string located in the body of the email (the whole line)? Is there a macro for this?

    My default message:

    Problem started at {EVENT.TIME} on {EVENT.DATE}
    Problem name: {TRIGGER.NAME}
    Host: {HOST.NAME}
    Severity: {TRIGGER.SEVERITY}

    Original problem ID: {EVENT.ID}
    {TRIGGER.URL}

    Thanks!
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please try using the macro {ITEM.VALUE}.
    I do not know how to set it in the trigger conditional expression, but you need to specify a number depending on the position of the conditional expression of the item that got the log.

    ex.
    {ITEM.VALUE1}
    {ITEM.VALUE2}
    {ITEM.VALUE3}

    Comment

    • alexandreroble
      Junior Member
      • Jun 2018
      • 9

      #3
      Thanks @Atsushi !


      It works!

      I appreciate your help.
      Last edited by alexandreroble; 23-08-2018, 23:00.

      Comment

      Working...