Appendix C. Probes
227
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 (
rhnmd
) must be running 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
egrep
,
which is equivalent to
grep -E
and supports extended regular expressions. This is the
regular expression set for
egrep
:
^ 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
egrep
to fail silently and the probe to time out.
Field
Value
Log file*
/var/log/messages
Basic regular expression*
Timeout*
45
Содержание NETWORK 4.0 -
Страница 1: ...Red Hat Network 4 0 Reference Guide...
Страница 10: ......
Страница 16: ...vi Introduction to the Guide...
Страница 24: ...8 Chapter 1 Red Hat Network Overview...
Страница 40: ...24 Chapter 2 Red Hat Update Agent Figure 2 11 Available Package Updates...
Страница 58: ...42 Chapter 2 Red Hat Update Agent...
Страница 80: ...64 Chapter 5 Red Hat Network Registration Client Figure 5 15 Text Mode Welcome Screen...
Страница 186: ...170 Chapter 7 Monitoring...
Страница 200: ...184 Chapter 8 UNIX Support Guide...
Страница 214: ...198 Appendix A Command Line Config Management Tools...
Страница 274: ...258 Appendix C Probes...
Страница 282: ...266 Glossary...