Finally i see that are two different binaries snmpd in openbsd.
One located in /usr/sbin and another into /usr/local/sbin
This in /usr/local/sbin are installed once when put net-snmpd package.
I try to run command "/usr/local/sbin/snmpd -c /etc/snmp/snmpd.conf",
but, no error, and daemon not start.
When i give "/usr/local/sbin/snmpd -H", i get this error
#######################
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
netsnmp_subtree_load()
Segmentation fault (core dumped)
#######################
i don't know how can resolve that.
Fratiman Vladut wrote:
Ok, i try to use something like this (worked for me on freebsd machine)
#####################################################
com2sec local localhost yyyy
com2sec mynetwork 192.168.1.0/24 yyyy
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
view all included .1 80
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
I try to launch snmpd like this:
# /usr/local/sbin/snmpd -f /etc/snmpd.conf
I receive this error
Segmentation fault (core dumped)
Fratiman Vladut wrote:
I try to configure snmpd in oreder to monitor traffic on openbsd.
I use snmpconf, and configure only community name. The generated
snmpd.conf look like this:
###########################################################################
#
# 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.
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]
rocommunity someone
When i run snmpd in debug mode, i receive an error that say about
syntax error into snmpd.conf at line where is defined community name.
What is wrong?