Class JoeSnmpTrapNotifier

    • Method Detail

      • snmpReceivedTrap

        public void snmpReceivedTrap​(SnmpTrapSession session,
                                     java.net.InetAddress agent,
                                     int port,
                                     SnmpOctetString community,
                                     SnmpPduPacket pdu)

        Process the recieved SNMP v2c trap that was received by the underlying trap session.

        Specified by:
        snmpReceivedTrap in interface SnmpTrapHandler
        Parameters:
        session - The trap session that received the datagram.
        agent - The remote agent that sent the datagram.
        port - The remmote port the trap was sent from.
        community - The community string contained in the message.
        pdu - The protocol data unit containing the data
      • snmpReceivedTrap

        public void snmpReceivedTrap​(SnmpTrapSession session,
                                     java.net.InetAddress agent,
                                     int port,
                                     SnmpOctetString community,
                                     SnmpPduTrap pdu)

        Process the recieved SNMP v1 trap that was received by the underlying trap session.

        Specified by:
        snmpReceivedTrap in interface SnmpTrapHandler
        Parameters:
        session - The trap session that received the datagram.
        agent - The remote agent that sent the datagram.
        port - The remmote port the trap was sent from.
        community - The community string contained in the message.
        pdu - The protocol data unit containing the data
      • snmpTrapSessionError

        public void snmpTrapSessionError​(SnmpTrapSession session,
                                         int error,
                                         java.lang.Object ref)

        Processes an error condition that occurs in the SnmpTrapSession. The errors are logged and ignored by the trapd class.

        Specified by:
        snmpTrapSessionError in interface SnmpTrapHandler
        Parameters:
        session - The SNMP Trap Session
        error - The error condition value.
        ref - The PDU reference, or potentially null. It may also be an exception.