Trees | Indices | Help |
|
---|
|
object --+ | SyslogProcessor
Class to process syslog messages and convert them into events viewable in the Zenoss event console.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
timeParse = re.compile("^(\S{3} [\d ]{2} [\d ]{2}:[\d ]{2}:[\d
|
|||
notHostSearch = re.compile("[\[:]").search
|
|
Initializer
|
Process an event from syslog and convert to a Zenoss event
|
Parse RFC-3164 PRI part of syslog message to get facility and priority.
|
Default mapping from syslog priority to severity.
|
Parse RFC-3164 HEADER part of syslog message. TIMESTAMP format is: MMM HH:MM:SS and host is next token without the characters '[' or ':'.
|
Parse the RFC-3164 tag of the syslog message using the regex defined at the top of this module.
|
Build the key used to find an events dictionary record. If eventClass is defined it is used. For NT events "Source_Evid" is used. For other syslog events we use the summary of the event to perform a full text or'ed search.
|
|
timeParse
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1.1812 on Tue Oct 11 12:51:19 2011 | http://epydoc.sourceforge.net |