Logmatch

From Net-SNMP Wiki
Revision as of 08:37, 20 August 2010 by Andrea (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).

Version

Implemented in version 3.5 and does only work on unix based implementations.

snmpd.conf syntax

logmatch NAME PATH CYCLETIME REGEX

References