Ad Widget

Collapse

Trigger question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zswss
    Junior Member
    • Jun 2018
    • 3

    #1

    Trigger question

    I have a logfile that is empty or contains either "Error" OR "Warning" but never both. I have an item set up that checks for "Error" or "Warning":

    vfs.file.regexp[c:\checks\log.txt,"Error|Warning",,,,]


    This correctly returns "Error" or "Warning" as result.

    Is it possible to have ONE trigger for this item and set the severity depending on the value that is returned (High for "Error", Warning for "Warning")?
Working...