Logmatch

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

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