Logagent::log Pattern Match - Red Hat NETWORK 4.1.0 Reference Manual

Hide thumbs Also See for NETWORK 4.1.0:
Table of Contents

Advertisement

Appendix C. Probes
C.6.1. LogAgent::Log Pattern Match
The LogAgent::Log Pattern Match probe uses regular expressions to match text located
within the monitored log file and collects the following metrics:
Regular Expression Matches — The number of matches that have occurred since the
probe last ran.
Regular Expression Match Rate — The number of matches per minute since the probe
last ran.
Requirements — The Red Hat Network Monitoring Daemon (
on the monitored system to execute this probe. For this probe to run, the nocpulse user
must be granted read access to your log files.
In addition to the name and location of the log file to be monitored, you must provide a
regular expression to be matched against. The expression must be formatted for
which is equivalent to
regular expression set for
^ beginning of line
$ end of line
. match one char
* match zero or more chars
[] match one character set, e.g. '[Ff]oo'
[^] match not in set '[^A-F]oo'
+ match one or more of preceding chars
? match zero or one of preceding chars
| or, e.g. a|b
() groups chars, e.g., (foo|bar) or (foo)+
Warning
Do not include single quotation marks (') within the expression. Doing so causes
to fail silently and the probe to time out.
Field
Log file*
Basic regular expression*
Timeout*
and supports extended regular expressions. This is the
grep -E
:
egrep
rhnmd
Value
/var/log/messages
45
239
) must be running
,
egrep
egrep

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents