logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

snmptrapfmt - Receive and log SNMP trap messages from a trap handler.

Description

       Snmptrapfmt receives SNMP trap data through a local pipe. The trap data is written to this pipe by a SNMP
       trap  handler which is called by snmptrapd (configuration is done in /etc/snmp/snmptrapd.conf) during the
       installation if this package.  Snmptrapfmt formats the received trap data according to the specifications
       in the configuration file /etc/snmp/snmptrapfmt.conf (see this file for the syntax). The  output  of  the
       snmptrapfmt application may be written to a log file or forwarded to the syslog daemon.

       The  option  -d1  should  be specified to enable tracing. Trace information is then written to the file
       /var/tmp/snmptrapfmt.trc.

       If the option -fcfgfile is given, the output of the daemon is configured via the mentioned configuration
       file. If this option is not specified, a default output format is used.

       If the option -D is given, the the program will daemonize into the background.

       The syntax of the configuration file is explained in /etc/snmp/snmptrapfmt.conf !

Files

/etc/init.d/snmptrapfmt is the start/stop script.

       /etc/snmp/snmptrapfmt.conf is the configuration file.

       /var/run/snmptrapfmt.pid is the PID file.

       /etc/snmp/snmptrapd.conf is the configuration file of the snmptrapd daemon, which calls the trap  handler
       snmptrapfmthdlr.

       /usr/sbin/snmptrapfmt is the executable of the application.

       /usr/sbin/snmptrapfmthdlr is the executable of the trap handler.

       /var/run/snmptrapfmt.p  is  the  communication  pipe  between  the  trap  handler snmptrapfmthdlr and the
       formatter snmptrapfmt.

       /var/tmp/snmptrapfmt.trc is the trace file if the option -d is specified.

       /var/log/snmptrapfmt.log is the log file as specified in the configuration file.

Name

       snmptrapfmt - Receive and log SNMP trap messages from a trap handler.

See Also

snmptrapfmthdlr(8), syslog(8), variables(5), RFC 1155, RFC 1156, RFC 1157, SNMP Security Internet Drafts

4th Berkeley Distribution                       19 DECEMBER 2002                                  SNMPTRAPFMT(8)

Synopsis

       snmptrapfmt [-d num] [-D] [-f cfgfile]

See Also