nmtrapd
NAME SYNOPSIS DESCRIPTION PROTOCOL SEE ALSO AUTHORS
nmtrapd - A network management SNMP trap multiplexer.
nmtrapd [ ''port''?
The nmtrapd trap daemon listens on the snmp-trap port (usually port 162/udp) for incoming SNMP trap or inform messages and forwards them to all connected clients (like scotty). The optional port argument allows to use the nmtrapd daemon to forward messages received on a non standard SNMP trap port. Port numbers below 1024 will be rejected with the exception of the snmp-trap port 162/udp.
The nmtrapd daemon must be installed setuid root since UNIX systems require root permissions to open the standard SNMP trap port 162/udp. The nmtrapd daemon rejects all port numbers below 1024 with the exception of port 162/udp in order to protect the system security.
Clients connect to the nmtrapd daemon by opening the AF_UNIX domain stream socket /tmp/.nmtrapd-port. Thus, the default AF_UNIX domain stream socket is named /tmp/.nmtrapd-162.
Received messages are forwarded using the following packet
| version| unused | port number |
| IPv4 address of the sender |
| length of the trap message |
| trap message | : : : : :
The value of the version field is 0 and all the unused bits are set to 0. The port number and the length of the trap message are returned in network byte order.
Erik Schoenfelder Juergen Schoenwaelder
One page links to nmtrapd(8):