Difference between revisions of "Logmatch"

From Net-SNMP Wiki
Jump to: navigation, search
m (Logwatch moved to Logmatch: Wrong name)
Line 8: Line 8:
 
== snmpd.conf syntax ==
 
== snmpd.conf syntax ==
 
logmatch NAME PATH CYCLETIME REGEX
 
logmatch NAME PATH CYCLETIME REGEX
 +
 +
[[Category:snmpd.conf]]

Revision as of 10:31, 16 May 2008

The logmatch feature enables you to monitor contents of a logfile. The agent must be built with support for the ucd-snmp/logmatch module (included as part of the default build configuration).

  • Monitors the specified file for occurances of the specified pattern REGEX.
  • A maximum of 50 files can be monitored per agent.

If no logmatch directives are defined, then walking the logMatchTable will fail (noSuchObject).

snmpd.conf syntax

logmatch NAME PATH CYCLETIME REGEX