I am trying to catch snmptrap sent by a host to this box. When i test 
the config file using the -Dread_config option i get this message.
"No log handling enabled - turning on stderr logging
registered debug token read_config, 1
read_config: reading premib configuration tokens
read_config:  config path used for 
snmptrapd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp://.snmp 
(persistent path:/var/net-snmp)
read_config: Reading configuration /usr/local/etc/snmp/snmptrapd.conf
read_config: /usr/local/etc/snmp/snmptrapd.conf:17 examining: format2  
%02.2h:%02.2j TRAP%w .%q from %A
read_config: /usr/local/etc/snmp/snmptrapd.conf:37 examining: traphandle 
CGatePro-MIB::numEnqueuerMessages 
/usr/local/nagios/libexec/handle-CGATE-trap 10
read_config: /usr/local/etc/snmp/snmptrapd.conf:38 examining: traphandle 
CGatePro-MIB::smtpInputTrafficIn 
/usr/local/nagios/libexec/handle-CGATE-trap 1
read_config: /usr/local/etc/snmp/snmptrapd.conf:50 examining: 
ignoreauthfailure  false
read_config: /usr/local/etc/snmp/snmptrapd.conf:65 examining: pidfile  
/var/net-snmp/snmptrapd-pid
read_config: /usr/local/etc/snmp/snmptrapd.conf:68 examining: 
trapcommunity stalker
read_config: /usr/local/etc/snmp/snmptrapd.local.conf: No such file or 
directoryread_config: /usr/local/share/snmp/snmptrapd.conf: No such file 
or directory
read_config: /usr/local/share/snmp/snmptrapd.local.conf: No such file or 
directory
read_config: /usr/local/lib/snmp/snmptrapd.conf: No such file or directory
read_config: /usr/local/lib/snmp/snmptrapd.local.conf: No such file or 
directoryread_config: //.snmp/snmptrapd.conf: No such file or directory
read_config: //.snmp/snmptrapd.local.conf: No such file or directory
read_config:  config path used for snmptrapd:/var/net-snmp (persistent 
path:/var/net-snmp)
read_config: Reading configuration /var/net-snmp/snmptrapd.conf
read_config: /var/net-snmp/snmptrapd.conf:32 examining: engineBoots 2
read_config: /var/net-snmp/snmptrapd.conf:33 examining: oldEngineID 
0x80001f888046d18252448dd5b6
read_config: Found a parser.  Calling it: oldEngineID / 
0x80001f888046d18252448dd5b6
read_config: /var/net-snmp/snmptrapd.local.conf: No such file or directory
read_config:  config path used for 
agentx:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp://.snmp 
(persistent path:/var/net-snmp)
read_config: /usr/local/etc/snmp/agentx.conf: No such file or directory
read_config: /usr/local/etc/snmp/agentx.local.conf: No such file or 
directory
read_config: /usr/local/share/snmp/agentx.conf: No such file or directory
read_config: /usr/local/share/snmp/agentx.local.conf: No such file or 
directory
read_config: /usr/local/lib/snmp/agentx.conf: No such file or directory
read_config: /usr/local/lib/snmp/agentx.local.conf: No such file or 
directory
read_config: //.snmp/agentx.conf: No such file or directory
read_config: //.snmp/agentx.local.conf: No such file or directory
read_config:  config path used for agentx:/var/net-snmp (persistent 
path:/var/net-snmp)
read_config: /var/net-snmp/agentx.conf: No such file or directory
read_config: /var/net-snmp/agentx.local.conf: No such file or directory
read_config:  config path used for 
snmp:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp://.snmp 
(persistent path:/var/net-snmp)
read_config: Reading configuration /usr/local/etc/snmp/snmp.conf
read_config: /usr/local/etc/snmp/snmp.conf:19 examining: defVersion 2c
read_config: /usr/local/etc/snmp/snmp.conf:20 examining: defversion  2c
read_config: /usr/local/etc/snmp/snmp.conf:28 examining: defCommunity 
communigate
read_config: /usr/local/etc/snmp/snmp.conf:40 examining: dodebugging  0
read_config: Found a parser.  Calling it: dodebugging / 0
Warning: no access control information configured.
*This receiver will *NOT* accept any incoming notifications."
*I don't understand why. I am including a copy of snmptrapd.conf file 
too. Any direction towards a solution is appreciated.
Thanks

config file snmptrapd.conf
###########################################################################
#
# snmptrapd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Output formatting for traps received.
#
#   Output from snmptrapd is formatted according to the
#   rules defined by the formatting configuration directives.

# format2: How SNMPv2 and SNMPv3 traps are formatted.
#   See the snmptrapd.conf manual page for format string details.
#   arguments: formatstring

format2  %02.2h:%02.2j TRAP%w .%q from %A



###########################################################################
# SECTION: Trap Handlers
#
#   Here we define what programs are run when a trap is
#   received by the trap receiver.

# traphandle: When traps are received, a program can be run.
#   When traps are received, the list of configured trap
#   handles is consulted and any configured program is run.
#   If no handler is found, any handler with "default" as the
#   traphandle type is run instead.  The information contained
#   in trap is passed to the program via standard input (see
#   the snmptrapd.conf manual page for details).
#
#   arguments: oid|"default" program args

traphandle CGatePro-MIB::numEnqueuerMessages 
/usr/local/nagios/libexec/handle-CGATE-trap 10
traphandle CGatePro-MIB::smtpInputTrafficIn 
/usr/local/nagios/libexec/handle-CGATE-trap 1



###########################################################################
# SECTION: Authentication options
#
#   Authentication options

# ignoreauthfailure: Ignore authentication failure traps
#   arguments: (1|yes|true|0|no|false)

ignoreauthfailure  false






###########################################################################
# SECTION: Runtime options
#
#   Runtime options

# pidfile: Store Process ID in file
#   arguments: PID file

pidfile  /var/net-snmp/snmptrapd-pid


trapcommunity stalker

jack


_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to