Hi
I want to trigger an alert when a value inside an eventlog entry reaches a threshold... There is no other way to get this data other than eventlogs.
e.g. the event text contains
"The table xyz has 7000 MB of free space left in after compacting"
I want to trigger an alert if the value drops below a value (e.g. 5000).
I have tried
regexp(The table .* has ([1-4][0-9][0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9]|[0-9]) MB of free space)
but the front end won't allow that (doesn't like the brackets)
and both:
regexp(The table .* has [1-4][0-9][0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9]|[0-9] MB of free space)
regexp(The table .* has \([1-4][0-9][0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9]|[0-9]\) MB of free space)
these end up triggering on any event that has numbers in there - ignoring the text.
How do I match the exact text and numbers (from 0-5000), or even better, use capture groups or backreferences so I can do something like regexp(The table .* has (\d{0,5}) MB of free space) < 5000 in the trigger
?
Regards,
Keith.
I want to trigger an alert when a value inside an eventlog entry reaches a threshold... There is no other way to get this data other than eventlogs.
e.g. the event text contains
"The table xyz has 7000 MB of free space left in after compacting"
I want to trigger an alert if the value drops below a value (e.g. 5000).
I have tried
regexp(The table .* has ([1-4][0-9][0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9]|[0-9]) MB of free space)
but the front end won't allow that (doesn't like the brackets)
and both:
regexp(The table .* has [1-4][0-9][0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9]|[0-9] MB of free space)
regexp(The table .* has \([1-4][0-9][0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9]|[0-9]\) MB of free space)
these end up triggering on any event that has numbers in there - ignoring the text.
How do I match the exact text and numbers (from 0-5000), or even better, use capture groups or backreferences so I can do something like regexp(The table .* has (\d{0,5}) MB of free space) < 5000 in the trigger
?
Regards,
Keith.
Comment