Package ZenEvents :: Module SyslogProcessing
[hide private]
[frames] | no frames]

Module SyslogProcessing

source code

SyslogProcessing

Class for turning syslog events into Zenoss Events

$Id$


Version:  

Classes [hide private]
  SyslogEvent
  SyslogProcessor
Variables [hide private]
  __doc__ = '''SyslogProcess...
  slog = logging.getLogger("zen.Syslog")
  parsers = ('^(?P<component>.+)\\[(?P<ntseverity>\\D+)\\] (?P<n...
  compiledParsers = [re.compile(r'^(?P<component>.+)\[(?P<ntseve...
  regex = '^(?P<deviceModel>[^\\[]+)\\[(?P<deviceManufacturer>AD...
Variables Details [hide private]

__doc__

Value:
'''SyslogProcessing

Class for turning syslog events into Zenoss Events

$Id$
'''

parsers

Value:
('^(?P<component>.+)\\[(?P<ntseverity>\\D+)\\] (?P<ntevid>\\d+) (?P<su\
mmary>.*)',
 '%CARD-\\S+:(SLOT\\d+) %(?P<eventClassKey>\\S+): (?P<summary>.*)',
 '%(?P<eventClassKey>(?P<component>\\S+)-\\d-\\S+): (?P<summary>.*)',
 '(?P<component>\\S+)\\[(?P<pid>\\d+)\\]: (?P<summary>.*)',
 '(?P<component>\\S+): (?P<summary>.*)',
 '^(?P<deviceModel>[^\\[]+)\\[(?P<deviceManufacturer>ADTRAN)\\]:(?P<co\
mponent>[^\\|]+\\|\\d+\\|\\d+)\\|(?P<summary>.*)')

compiledParsers

Value:
[re.compile(r'^(?P<component>.+)\[(?P<ntseverity>\D+)\] (?P<ntevid>\d+\
) (?P<summary>.*)'),
 re.compile(r'%CARD-\S+:(SLOT\d+) %(?P<eventClassKey>\S+): (?P<summary\
>.*)'),
 re.compile(r'%(?P<eventClassKey>(?P<component>\S+)-\d-\S+): (?P<summa\
ry>.*)'),
 re.compile(r'(?P<component>\S+)\[(?P<pid>\d+)\]: (?P<summary>.*)'),
 re.compile(r'(?P<component>\S+): (?P<summary>.*)'),
...

regex

Value:
'^(?P<deviceModel>[^\\[]+)\\[(?P<deviceManufacturer>ADTRAN)\\]:(?P<com\
ponent>[^\\|]+\\|\\d+\\|\\d+)\\|(?P<summary>.*)'