Package ZenEvents :: Module zensyslog :: Class ZenSyslog
[hide private]
[frames] | no frames]

Class ZenSyslog

source code

twisted.internet.protocol.AbstractDatagramProtocol --+    
                                                     |    
            twisted.internet.protocol.DatagramProtocol --+
                                                         |
         Products.ZenUtils.CmdBase.CmdBase --+           |
                                             |           |
         Products.ZenUtils.ZenDaemon.ZenDaemon --+       |
                                                 |       |
               Products.ZenUtils.ZCmdBase.ZCmdBase --+   |
                                                     |   |
                               EventServer.EventServer --+
                                                         |
                                                        ZenSyslog

Instance Methods [hide private]
 
__init__(self) source code
 
expand(self, msg, client_address)
expands a syslog message into a string format suitable for writing to the filesystem such that it appears the same as it would had the message been logged by the syslog daemon.
source code
 
datagramReceived(self, msg, client_address)
Use a separate thread to process the request.
source code
 
gotHostname(self, response, data)
send the resolved address, if possible, and the event via the thread
source code
 
doHandleRequest(self, host, msg, ipaddr, rtime)
process a single syslog message, called from the inherited thread
source code
 
buildOptions(self)
basic options setup sub classes can add more options here
source code

Inherited from twisted.internet.protocol.DatagramProtocol: connectionRefused

Inherited from twisted.internet.protocol.AbstractDatagramProtocol: __getstate__, doStart, doStop, makeConnection, startProtocol, stopProtocol

Inherited from EventServer.EventServer: finish, heartbeat, main, report, reportCycle, run, sendEvent, sendEvents, sigTerm, useTcpFileDescriptor, useUdpFileDescriptor

Inherited from Products.ZenUtils.ZCmdBase.ZCmdBase: closeAll, closedb, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb, zeoConnect

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: becomeDaemon, changeUser, setupLogging

Inherited from Products.ZenUtils.CmdBase.CmdBase: buildParser, generate_configs, generate_xml_table, parseOptions, pretty_print_config_comment

Class Variables [hide private]
  name = 'zensyslog'
  SYSLOG_DATE_FORMAT = '%b %d %H:%M:%S'
  SAMPLE_DATE = 'Apr 10 15:19:22'

Inherited from twisted.internet.protocol.AbstractDatagramProtocol: noisy, numPorts, transport

Inherited from Products.ZenUtils.ZenDaemon.ZenDaemon: pidfile

Inherited from Products.ZenUtils.CmdBase.CmdBase: doesLogging

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: EventServer.EventServer.__init__

datagramReceived(self, msg, client_address)

source code 
Use a separate thread to process the request.
Overrides: twisted.internet.protocol.AbstractDatagramProtocol.datagramReceived

buildOptions(self)

source code 
basic options setup sub classes can add more options here
Overrides: EventServer.EventServer.buildOptions