I'm having problems with snmptrapfmt/snmpd.  I'm not getting any log output in 
/var/log/snmptrapfmt.log.  My router should be sending snmp traps/logs to my 
computer.  Below is the /var/tmp/snmptrapfmt.trc as a result of adding "-d 1" 
to snmptrapfmt.

I used to use trapmon (which uses snmptrapd), but that doesn't seem to work any 
more.

Is there a way to test snmptrapfmt?  There seems to be an "snmptrap" command, 
but, no matter how I invoke it, I cannot get any log output in /var/log.

I'm running Debian stable.

Thanks for any help.


----------------- snmptrapfmt.trc ----------------------

20060908.023939 (snmptrapfmt-16963): Starting ...
20060908.023939 (snmptrapfmt-16963): Parsing config file 
'/etc/snmp/snmptrapfmt.conf'
20060908.023939 (snmptrapfmt-16963): Read line '# 
-----------------------------------------------------------------------------
'
20060908.023939 (snmptrapfmt-16963): Read line '# Configuration file for 
snmptrapfmt-1.0
'
20060908.023939 (snmptrapfmt-16963): Read line '#
'
20060908.023939 (snmptrapfmt-16963): Read line '# Comment lines start with the 
character '#'
'
20060908.023939 (snmptrapfmt-16963): Read line '# Blank lines are ignored
'
20060908.023939 (snmptrapfmt-16963): Read line '#
'
20060908.023939 (snmptrapfmt-16963): Read line '# In order to configure the log 
output, use the following keywords.
'
20060908.023939 (snmptrapfmt-16963): Read line '# 
-----------------------------------------------------------------------------
'
20060908.023939 (snmptrapfmt-16963): Read line '
'
20060908.023939 (snmptrapfmt-16963): Read line '
'
20060908.023939 (snmptrapfmt-16963): Read line '# - SUBST=\a\b\
'
20060908.023939 (snmptrapfmt-16963): Read line '#   substitute char 'a' with 
'b' in variable values
'
20060908.023939 (snmptrapfmt-16963): Read line '#   Default: \;\ \
'
20060908.023939 (snmptrapfmt-16963): Read line 'SUBST=\#\ \
'
20060908.023939 (snmptrapfmt-16963): Read line '
'
20060908.023939 (snmptrapfmt-16963): Read line '# NOTE: The OID Format has to 
be set in the /etc/snmp/snmp.conf. 
'
20060908.023939 (snmptrapfmt-16963): Read line '#       See SNMP.CONF(5). It is 
valid for all snmp programs of package SNMPD.
'
20060908.023939 (snmptrapfmt-16963): Read line '#       You can specify it 
with:  printNumericOids (1|yes|true|0|no|false) 
'
20060908.023939 (snmptrapfmt-16963): Read line '#
'
20060908.023939 (snmptrapfmt-16963): Read line '#  snmptrapfmt uses it in 
formats $e $*
'
20060908.023939 (snmptrapfmt-16963): Read line '
'
20060908.023939 (snmptrapfmt-16963): Read line '# NODEFMT=ip | fqdn | name
'
20060908.023939 (snmptrapfmt-16963): Read line '#   print nodenames as IP 
address (ip), as fully qualified domain name (fqdn)
'
20060908.023939 (snmptrapfmt-16963): Read line '#   or in the short form (name);
'
20060908.023939 (snmptrapfmt-16963): Read line '#   used in formats $A $R $r $*
'
20060908.023939 (snmptrapfmt-16963): Read line '#   Default: fqdn
'
20060908.023939 (snmptrapfmt-16963): Read line 'NODEFMT=ip
'
20060908.023939 (snmptrapfmt-16963): Read line '
'
20060908.023939 (snmptrapfmt-16963): Read line '# VARFMT="format string for 
variables"
'
20060908.023939 (snmptrapfmt-16963): Read line '#   specify the output of 
variables when using the '$*' format specifier
'
20060908.023939 (snmptrapfmt-16963): Read line '#   in the logfile format;
'
20060908.023939 (snmptrapfmt-16963): Read line '#   special chars recognized:
'
20060908.023939 (snmptrapfmt-16963): Read line '#    %s ... sequence number of 
the variable
'
20060908.023939 (snmptrapfmt-16963): Read line '#    %n ... the name of the 
variable (see OIDFMT)
'
20060908.023939 (snmptrapfmt-16963): Read line '#    %t ... the type of the 
variable
'
20060908.023939 (snmptrapfmt-16963): Read line '#    %v ... the value of the 
variable
'
20060908.023939 (snmptrapfmt-16963): Read line '#   used in format $*
'
20060908.023939 (snmptrapfmt-16963): Read line '#   Default: ";[%s] %n (%t) : 
%v"  
'
20060908.023939 (snmptrapfmt-16963): Read line '#VARFMT="\n\t[%s] %n (%t) : %v"
'
20060908.023939 (snmptrapfmt-16963): Read line 'VARFMT="#[%s] %n (%t) : %v" 
'
20060908.023939 (snmptrapfmt-16963): Read line '
'
20060908.023939 (snmptrapfmt-16963): Read line '# LOGFMT="format string for 
logfile entry"
'
20060908.023939 (snmptrapfmt-16963): Read line '#   specify the output of the 
logfile entry;
'
20060908.023939 (snmptrapfmt-16963): Read line '#   special char recognized:
'
20060908.023939 (snmptrapfmt-16963): Read line '#    \n  ... newline
'
20060908.023939 (snmptrapfmt-16963): Read line '#    \r  ... carriage return
'
20060908.023939 (snmptrapfmt-16963): Read line '#    \t  ... horizontal tab
'
20060908.023939 (snmptrapfmt-16963): Read line '#    \\  ... backslash
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $#  ... number of 
variables in the trap
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $*  ... print all 
variables of the trap as specified in VARFMT
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $x  ... date the trap was 
received (YYYYMMDD.HHMMSS)
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $r  ... the implied source 
of the trap (agent address) (see NODEFMT)
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $R  ... the true source of 
the trap (via transport layer) (see NODEFMT)
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $$  ... the character '$'
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $e  ... the enterprise of 
the trap as specified in OIDFMT
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $A  ... the trap agent 
address as specified in NODEFMT
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $G  ... the trap generic 
number
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $S  ... the trap specific 
number
'
20060908.023939 (snmptrapfmt-16963): Read line '#    $T  ... the trap's 
sysUpTime timestamp (in seconds)
'
20060908.023939 (snmptrapfmt-16963): Read line '#    ordinary characters 
represent themselfes
'
20060908.023939 (snmptrapfmt-16963): Read line '#   Default: "$x;$A;$e;$G;$S$*"
'
20060908.023939 (snmptrapfmt-16963): Read line 
'#LOGFMT="\n$$x=$x\n$$r=$r\n$$R=$R\n$$e=$e\n$$A=$A\n$$G=$G\n$$S=$S\n$$T=$T\n$$#=$#$*"
'
20060908.023939 (snmptrapfmt-16963): Read line 'LOGFMT="$x#$A#$e#$G#$S#$T$*"
'
20060908.023939 (snmptrapfmt-16963): Read line '
'
20060908.023939 (snmptrapfmt-16963): Read line '# LOGFILE="path to logfile"
'
20060908.023939 (snmptrapfmt-16963): Read line '#   specify the pathname of the 
logfile; if none or the empty string "" is
'
20060908.023939 (snmptrapfmt-16963): Read line '#   given, use the syslog() 
mechanism to log the traps
'
20060908.023939 (snmptrapfmt-16963): Read line '#   Default: ""
'
20060908.023939 (snmptrapfmt-16963): Read line 
'LOGFILE="/var/log/snmptrapfmt.log"
'
20060908.023939 (snmptrapfmt-16963): Configuration variables:
20060908.023939 (snmptrapfmt-16963):  cfg_subst1  = '#'
20060908.023939 (snmptrapfmt-16963):  cfg_subst2  = ' '
20060908.023939 (snmptrapfmt-16963):  cfg_oidfmt  = oid
20060908.023939 (snmptrapfmt-16963):  cfg_nodefmt = ip
20060908.023939 (snmptrapfmt-16963):  cfg_varfmt  = "#[%s] %n (%t) : %v"
20060908.023939 (snmptrapfmt-16963):  cfg_logfmt  = "$x#$A#$e#$G#$S#$T$*"
20060908.023939 (snmptrapfmt-16963):  cfg_logname = "/var/log/snmptrapfmt.log"
20060908.023939 (snmptrapfmt-16963): Create the pipe '/var/run/snmptrapfmt.p' 
...
20060908.023939 (snmptrapfmt-16963): Pipe opened for reading
20060908.023944 (snmptrapfmt-16963): Timeout occurred ...
20060908.023949 (snmptrapfmt-16963): Timeout occurred ...
20060908.023954 (snmptrapfmt-16963): Timeout occurred ...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to