Package Products :: Package ZenEvents :: Module zentrap
[hide private]
[frames] | no frames]

Module zentrap

source code

Classes [hide private]
sockaddr_in
sockaddr_in6
FakePacket
A fake object to make packet replaying feasible.
SnmpTrapPreferences
TrapTask
Listen for SNMP traps and turn them into events Connects to the TrapService service in zenhub.
MibConfigTask
Receive a configuration object containing MIBs and update the mapping of OIDs to names.
TrapDaemon
Functions [hide private]
 
ipv6_is_enabled()
test if ipv6 is enabled
source code
Variables [hide private]
  __doc__ = """zent...
  log = logging.getLogger("zen.zentrap")
  family = [('len', c.c_ubyte), ('family', c.c_ubyte)]
  _pre_parse_factory = c.CFUNCTYPE(c.c_int, c.POINTER(netsnmp.ne...
  SNMPv1 = 0
  SNMPv2 = 1
  SNMPv3 = 3
Variables Details [hide private]

__doc__

Value:
"""zentrap

Creates events from SNMP Traps.
Currently a wrapper around the Net-SNMP C library.
"""

_pre_parse_factory

Value:
c.CFUNCTYPE(c.c_int, c.POINTER(netsnmp.netsnmp_session), c.POINTER(net\
snmp.netsnmp_transport), c.c_void_p, c.c_int)