Appendix C. Probes
149
be granted read access to your log files.
Note that data from the first run of these probes will not be measured against the thresholds to prevent
spurious notifications caused by incomplete metric data. Measurements will begin on the second run.
C.6.1. LogAgent::Log Pattern Match
The LogAgent::Log Pattern Match probe uses regular expressions to match text located within the log
file being monitored 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 moni-
tored 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 in regex format for
egrep
, which is equivalent to
grep -E
in
support for extended regular expressions. This is the regex 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 will cause egrep to fail
silently and the probe to time out.
Field
Value
Log file*
/var/log/messages
Basic regular expression*
Timeout*
45
Critical Maximum Matches
Warning Maximum Matches
Warning Minimum Matches
Critical Minimum Matches
Critical Maximum Match Rate
Warning Maximum Match Rate
Содержание NETWORK 3.6 -
Страница 1: ...Red Hat Network 3 6 Reference Guide ...
Страница 8: ......
Страница 54: ...42 Chapter 4 Red Hat Network Alert Notification Tool ...
Страница 68: ...56 Chapter 5 Red Hat Network Registration Client ...
Страница 130: ...118 Chapter 6 Red Hat Network Website ...
Страница 138: ...126 Appendix A Command Line Config Management Tools ...
Страница 142: ...130 Appendix B RHN API Access ...
Страница 186: ...174 Appendix C Probes ...
Страница 192: ...180 Glossary ...