ports/79694: net-snmp-5-2-1.1 without perl breaks snmpd -c ~/snmpd.conf
Marten Vijn
mvn at wi-do.com
Fri Apr 8 19:00:14 UTC 2005
>Number: 79694
>Category: ports
>Synopsis: net-snmp-5-2-1.1 without perl breaks snmpd -c ~/snmpd.conf
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 08 19:00:13 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Marten Vijn
>Release: 5.3 5.4
>Organization:
Marten Vijn
>Environment:
vijn# uname -a
FreeBSD vijn.xs4all.nl 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Tue Apr 5 23:22:03 CEST 2005 root at vijn.xs4all.nl:/usr/obj/usr/src/sys/GENERIC i386
vijn#
>Description:
Dear Sir / Madame,
7-4-5 checkout from ports
in /usr/ports/net/snmpd
make clean
make package -DWITHOUT_PERL
pkg_add net-snmp*
made this config file from testing with snmpconf :
cat snmpd.conf
###########################################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.
# rwuser: a SNMPv3 read-write user
# arguments: user [noauth|auth|priv] [restriction_oid]
rwuser root
rwuser
# rouser: a SNMPv3 read-only user
# arguments: user [noauth|auth|priv] [restriction_oid]
rouser noauth noauth public
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]
rocommunity public
###########################################################################
# SECTION: Monitor Various Aspects of the Running Host
#
# The following check up on various aspects of a host.
# proc: Check for processes that should be running.
# proc NAME [MAX=0] [MIN=0]
#
# NAME: the name of the process to check for. It must match
# exactly (ie, http will not find httpd processes).
# MAX: the maximum number allowed to be running. Defaults to 0.
# MIN: the minimum number to be running. Defaults to 0.
#
# The results are reported in the prTable section of the UCD-SNMP-MIB tree
# Special Case: When the min and max numbers are both 0, it assumes
# you want a max of infinity and a min of 1.
proc
# load: Check for unreasonable load average values.
# Watch the load average levels on the machine.
#
# load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
#
# 1MAX: If the 1 minute load average is above this limit at query
# time, the errorFlag will be set.
# 5MAX: Similar, but for 5 min average.
# 15MAX: Similar, but for 15 min average.
#
# The results are reported in the laTable section of the UCD-SNMP-MIB tree
load 1 1 1
###########################################################################
# SECTION: System Information Setup
#
# This section defines some of the information reported in
# the "system" mib group in the mibII tree.
# syslocation: The [typically physical] location of the system.
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysLocation.0 variable will make
# the agent return the "notWritable" error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: location_string
syslocation leiden
# syscontact: The contact information for the administrator
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysContact.0 variable will make
# the agent return the "notWritable" error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: contact_string
syscontact marten at wirelessleiden.net
# sysservices: The proper value for the sysServices object.
# arguments: sysservices_number
sysservices 79
###########################################################################
# SECTION: Trap Destinations
#
# Here we define who the agent will send traps to.
# trap2sink: A SNMPv2c trap receiver
# arguments: host [community] [portnum]
trap2sink
# informsink: A SNMPv2c inform (acknowledged trap) receiver
# arguments: host [community] [portnum]
informsink home-marten.wleiden.net wleiden 2000
# trapcommunity: Default trap sink community to use
# arguments: community-string
trapcommunity wleiden
# authtrapenable: Should we send traps when authentication failures occur
# arguments: 1 | 2 (1 = yes, 2 = no)
authtrapenable 1
####
mv /usr/local/share/snmp/snmpd.conf /root
snmpd -c /root/snmpd.conf
snmpwalk -v1 -c public localhost
Timeout: No Response from localhost
cp /root/snmpd.conf /usr/local/share/snmp/snmpd.conf
killall snmpd
snmpd -c /root/snmpd.conf
snmpwalk -v1 -c public localhost uptime
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (3873) 0:00:38.73
>How-To-Repeat:
1. This does not occur in when it is compiled wth perl, because then the config file is copied ( by perl?) to /usr/local/share/snmp
2. see above
>Fix:
work arounds:
1. don't compile without perl
2. be sure the your config is in /usr/local/share/snmp/snmpd.conf
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list