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

# Module zentrap

source code

Classes | [hide private]
sockaddr_in
FakePacket A fake object to make packet replaying feasible.
ZenTrap Listen for SNMP traps and turn them into events Connects to the TrapService service in zenhub.

Functions | [hide private]
lp2oid(ptr, length) Convert a pointer to an array of longs to an oid | source code
bp2ip(ptr) Convert a pointer to 4 bytes to a dotted-ip-address | source code

Variables | [hide private]
| __doc__ = `"""zent`...``
| family = `[('len', c.c_ubyte), ('family', c.c_ubyte)]`
| TRAP_PORT = `socket.getservbyname('snmptrap', 'udp')`

Variables Details | [hide private]

  ### __doc__ Value:
      """zentrap

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