Код: Выделить всё
vds [/var/run]# /usr/local/etc/rc.d/snmpd start
Starting snmpd.
vds [/var/run]# ps uaxd | grep snm
vds [/var/run]# sockstat -l4 | grep snm
vds [/var/run]#
Код: Выделить всё
vds [/var/run]# tail -2 /etc/rc.conf
snmpd_enable="YES"
#snmpd_flags="-a -Lsd"
с флагами в rc.conf тоже не стартует
конфиг:
Код: Выделить всё
vds [/var/run]# cat /usr/local/share/snmp/snmpd.conf
###########################################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# 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 vds
# 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 "Admin <web@local>"
# sysservices: The proper value for the sysServices object.
# arguments: sysservices_number
sysservices 76
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]
rocommunity comm 127.0.0.1
###########################################################################
# SECTION: Agent Operating Mode
#
# This section defines how the agent will operate when it
# is running.
# agentaddress: The IP address and port number that the agent will listen on.
# By default the agent listens to any and all traffic from any
# interface on the default SNMP port (161). This allows you to
# specify which address, interface, transport type and port(s) that you
# want the agent to listen on. Multiple definitions of this token
# are concatenated together (using ':'s).
# arguments: [transport:]port[@interface/address],...
#agentaddress 161
Код: Выделить всё
+ echo 'Starting snmpd.'
Starting snmpd.
+ [ -n '' ]
+ _doit='/usr/local/sbin/snmpd -c /usr/local/share/snmp/snmpd.conf -p /var/run/snmpd.pid '
+ [ -n '' ]
+ [ -n '' ]
+ _run_rc_doit '/usr/local/sbin/snmpd -c /usr/local/share/snmp/snmpd.conf -p /var/run/snmpd.pid '
+ debug 'run_rc_command: doit: /usr/local/sbin/snmpd -c /usr/local/share/snmp/snmpd.conf -p /var/run/snmpd.pid '
+ eval '/usr/local/sbin/snmpd -c /usr/local/share/snmp/snmpd.conf -p /var/run/snmpd.pid '
+ /usr/local/sbin/snmpd -c /usr/local/share/snmp/snmpd.conf -p /var/run/snmpd.pid
+ _return=0
+ [ 0 -ne 0 ]
+ return 0
+ _run_rc_postcmd
+ [ -n '' ]
+ return 0
+ return 0
Может кто сталкивался или есть идеи?