Ad Widget

Collapse

How to setup logrt as active check with intervalized checks?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wigyori
    Junior Member
    • Dec 2012
    • 1

    #1

    How to setup logrt as active check with intervalized checks?

    Hi all,

    I'm trying to set up an active check with monitoring a logfile with logrt (logrt is needed as the logfile's name changes from time to time, and a regex is needed.)

    A trigger is already set up to check the file's contents based on separate regexps (in separate triggers), but I'd need to implement a "check in business hours" interval. I've been given a hint on expanding the items' expression with a time(0), but no success yet.

    Currently my expression on the item looks like as below:

    logrt[{$FILENAME},,,100,skip]

    ... and there are expressions like:

    {Application_logmonitor:logrt[{$FILENAME},,,100,skip].regexp("string1")}#0

    What I've been trying to set up is like:

    {logrt[{$FILENAME},,,100,skip].time(0)}<163000} & {logrt[{$FILENAME},,,100,skip].time(0)}>080000}

    What would be a correct syntax for this setup? For the frontend, 2.0.3 is running.

    Thanks in advance,
    -w-
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Try something like this (not testet):
    Code:
    {example.com:logrt[{$FILENAME},,,100,skip].time(0)}<163000&{example.com:logrt[{$FILENAME},,,100,skip].time(0)}>080000&{example.com:logrt[{$FILENAME},,,100,skip].str("error string that should fire this triger")}=1
    See this: Trigger expression
    Last edited by BDiE8VNy; 11-12-2012, 22:27. Reason: typo

    Comment

    Working...