Ad Widget

Collapse

Create a trigger and make sure it always stays in problem state

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #1

    Create a trigger and make sure it always stays in problem state


    Any suggestion on creating a trigger that always stays in problem state?

    I have a trigger with 4 expression and I want to add a 5th eventlog type trigger expression that is always in problem state

    This is because in actions I have trigger.key1-4 displayed in email. But I want to add a 5th key that has the eventlog information if it has collected data, if not then the trigger alert email will have only 4 key values.

    The 4 expression will trigger the alert, 5th expression just needs to be there so I could include its value to the email.

    I wonder if its possible to do with nodata for eventlog item type
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #2
    I could try
    Code:
     {test Template:eventlog[Application,.*2176.*,Information,,^23$].last()}<>0
    but the whole trigger will become not supported when there is no data for just eventlog item.

    Comment

    • registration_is_lame
      Senior Member
      • Nov 2007
      • 148

      #3
      Found a workaround

      Code:
        {test Template:eventlog[Application,.*2176.*,Information,,^23$].str(something_that_doesn't_exists)}=0
      now the trigger always stays in problem state

      Comment

      Working...