Ad Widget

Collapse

trigger functions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • higor
    Junior Member
    • Jan 2020
    • 6

    #1

    trigger functions

    so, i need create one trigger of the recovery for the

    {smartfox:log[/file/server/SF/logs/gamex/gamex.log,":.*No match.* idle match!!!"].regexp(:.*No match.* idle match!!!,1)}=1
    the function that i want is:
    "if this trigger not occorred betwen 30min the trigger of the resolution é activade"
    someone can help-me?
    Last edited by higor; 24-01-2020, 17:02.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Originally posted by higor
    so, i need create one trigger of the recovery for the

    the function that i want is:
    "if this trigger not occorred betwen 30min the trigger of the resolution é activade"
    I'm not certain I understand what you're asking for. Are you saying that you want your recovery condition to be that the log message you've matched hasn't happened in the last 30 minutes? I think that's just

    Code:
    {smartfox:log[/file/server/SF/logs/gamex/gamex.log,":.*No match.* idle match!!!"].regexp(:.*No match.* idle match!!!,30m)}=0
    Notice that all I changed from your problem detection trigger is the 2nd argument to regexp(), so that it applies to the last 30 minutes, and the result (0, not found).

    Is that what you're asking for?

    Comment

    Working...