Logmatch

From Net-SNMP Wiki
Revision as of 09:08, 16 May 2008 by Messiah (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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