Difference between revisions of "Logmatch"

From Net-SNMP Wiki
Jump to: navigation, search
Line 14: Line 14:
 
==References==
 
==References==
 
*[http://www.net-snmp.org/docs/README.agent-mibs.html README.agent-mibs]
 
*[http://www.net-snmp.org/docs/README.agent-mibs.html README.agent-mibs]
 +
 +
*[http://www.mightystudents.com/ essay topics]
  
 
[[Category:snmpd.conf]]
 
[[Category:snmpd.conf]]
 
[[Category:v3.5]]
 
[[Category:v3.5]]

Revision as of 08:37, 20 August 2010

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