Hi 

I have few question regarding my net-snmp configuration files although its 
working fine.
(1).i need logging option for both snmpd and snmptrapd to a different location 
(user specified ie /var/log/snmpd.log and /var/log/snmptrapd.log) rather then 
syslog(it is logging in syslog).

i have following line in /etc/default/snmpd file
SNMPDRUN=yes

# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c 
/etc/snmp/snmpd.conf'

# snmptrapd control (yes means start daemon).  As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run.  See snmpd.conf(5) for how to do this.
TRAPDRUN=yes

# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'

# create symlink on Debian legacy location to official RFC path
SNMPDCOMPAT=yes
 
(2). when i mention agentaddress udp:161 or udp:127.0.0.1:161 in snmpd.conf 
file i got error opening specified endpoint 161 and snmpd can not start, if i 
do not mention above token it is working.
(3). what token should be provide for traphandler in snmptrapd.conf file ?. i 
have downloaded a sample handler which is a perl file from debian website and 
is located under /usr/local/bin/Mytrapfile.pl . snmptrapd.conf file has 
followig line.

traphandle  default /usr/local/bin/Mytrapfile.pl

i can not restart snmptrapd service after i stop it(on boot up no problem). i 
got following err.
 * Restarting network management services:                                     

Unknown logging option passed to -L: ".
Unknown logging option passed to -L: ".
Unknown output option passed to -O: -
sh: /usr/local/bin/Mytrapfile.pl: Permission denied
sh: /usr/local/bin/Mytrapfile.pl: Permission denied
^Cjbpandit@jbpandit-desktop:~$ service snmpd status
 * snmpd is running
 * snmptrapd is not running
this is log option in snmptrapd.conf file

logoption  "-Lf FILE"
logoption  "-Lf /var/log/snmptrapd.log"
snmpd.conf file has following trap destinations value
trapsink 127.0.0.1 public
trap2sink 127.0.0.1 public
informsink 127.0.0.1 public
trapcommunity public
authtrapenable 1


there is no trap in syslog from snmptrapd.

what is wrong here
help please.............jbpandit

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to