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-
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-
Comment