RE: rwcommunity in snmpd.conf ignored by snmpd ("unknown token" in debug output)

Paul Cerqua <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>

Thanks for the reply, Thomas.

Here's the info you requested:

net-snmp-config --configure-options

'--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--datadir=/usr/share' '--includedir=/usr/include/net-snmp' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-static' '--enable-shared' '--with-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -lcrypto' '--with-ldflags=' '--with-sys-location=Unknown' '--with-logfile=/var/log/snmpd.log' '--with-persistent-directory=/var/net-snmp' '--with-mib-modules=host agentx smux ucd-snmp/lmSensors    ucd-snmp/diskio disman/event-mib tcp-mib udp-mib mibII/mta_sendmail' '--with-libwrap=/usr/lib' '--sysconfdir=/etc' '--enable-ipv6' '--enable-ucd-snmp-compatibility' '--with-openssl' '--with-pic' '--enable-embedded-perl' '--enable-mfd-rewrites' '--enable-local-smux' '--with-sys-contact=root@localhost' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' 'build_alias=i686-redhat-linux-gnu' 'host_alias=i686-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu'



net-snmp-config --snmpd-module-list | tr " " "\n"

ucd-snmp/lmSensors
ucd-snmp/diskio
mibII/mta_sendmail
mibII/ipv6
mibII/system_mib
mibII/sysORTable
mibII/at
mibII/ip
mibII/snmp_mib
mibII/tcp
mibII/icmp
mibII/udp
mibII/vacm_vars
mibII/setSerialNo
ucd-snmp/memory
ucd-snmp/vmstat
ucd-snmp/proc
ucd-snmp/versioninfo
ucd-snmp/pass
ucd-snmp/pass_persist
ucd-snmp/disk
ucd-snmp/loadave
ucd-snmp/extensible
agent/extend
ucd-snmp/errormib
ucd-snmp/file
ucd-snmp/dlmod
ucd-snmp/proxy
ucd-snmp/logmatch
snmpv3/snmpEngine
snmpv3/snmpMPDStats
snmpv3/usmStats
snmpv3/usmConf
snmpv3/usmUser
notification/snmpNotifyTable
notification/snmpNotifyFilterProfileTable
notification-log-mib/notification_log
target/snmpTargetAddrEntry
target/snmpTargetParamsEntry
target/target
target/target_counters
agent/nsTransactionTable
agent/nsModuleTable
agent/nsDebug
agent/nsCache
agent/nsLogging
agentx/master
agentx/subagent
disman/schedule/schedCore
disman/schedule/schedConf
disman/schedule/schedTable
utilities/override
utilities/execute
utilities/iquery
host/hr_system
host/hr_storage
host/hr_device
host/hr_other
host/hr_proc
host/hr_network
host/hr_print
host/hr_disk
host/hr_partition
host/hr_filesys
host/hr_swrun
host/hr_swinst
smux/smux
util_funcs
mibII/var_route
mibII/route_write
mibII/kernel_linux
mibII/ipAddr
mibII/tcpTable
mibII/udpTable
mibII/vacm_context
mibII/vacm_conf
ip-mib/ip_scalars
header_complex
snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable
agentx/protocol
agentx/client
agentx/master_admin
agentx/agentx_config
disman/event/mteScalars
disman/event/mteTrigger
disman/event/mteTriggerTable
disman/event/mteTriggerDeltaTable
disman/event/mteTriggerExistenceTable
disman/event/mteTriggerBooleanTable
disman/event/mteTriggerThresholdTable
disman/event/mteTriggerConf
disman/event/mteEvent
disman/event/mteEventTable
disman/event/mteEventSetTable
disman/event/mteEventNotificationTable
disman/event/mteEventConf
disman/event/mteObjects
disman/event/mteObjectsTable
disman/event/mteObjectsConf
tcp-mib/tcpConnectionTable/tcpConnectionTable
tcp-mib/tcpListenerTable/tcpListenerTable
udp-mib/udpEndpointTable/udpEndpointTable
if-mib/ifTable/ifTable
ip-mib/ipAddressTable/ipAddressTable
ip-mib/inetNetToMediaTable/inetNetToMediaTable
ip-mib/inetNetToMediaTable/inetNetToMediaTable_interface
ip-mib/inetNetToMediaTable/inetNetToMediaTable_data_access
ip-mib/ipSystemStatsTable/ipSystemStatsTable
ip-mib/ipSystemStatsTable/ipSystemStatsTable_interface
ip-mib/ipSystemStatsTable/ipSystemStatsTable_data_access
if-mib/ifXTable/ifXTable
ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable
hardware/memory/memory_linux
hardware/memory/hw_mem
hardware/cpu/cpu_linux
hardware/cpu/cpu
snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_interface
snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_data_access
tcp-mib/data_access/tcpConn_common
tcp-mib/data_access/tcpConn_linux
tcp-mib/tcpConnectionTable/tcpConnectionTable_interface
tcp-mib/tcpConnectionTable/tcpConnectionTable_data_access
tcp-mib/tcpListenerTable/tcpListenerTable_interface
tcp-mib/tcpListenerTable/tcpListenerTable_data_access
udp-mib/udpEndpointTable/udpEndpointTable_interface
udp-mib/udpEndpointTable/udpEndpointTable_data_access
if-mib/data_access/interface
if-mib/ifTable/ifTable_interface
if-mib/ifTable/ifTable_data_access
ip-mib/ipAddressTable/ipAddressTable_interface
ip-mib/ipAddressTable/ipAddressTable_data_access
ip-mib/data_access/arp_common
ip-mib/data_access/arp_linux
ip-mib/data_access/systemstats_common
ip-mib/data_access/systemstats_linux
ip-mib/data_access/scalars_linux
if-mib/ifXTable/ifXTable_interface
if-mib/ifXTable/ifXTable_data_access
ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable_interface
ip-forward-mib/ipCidrRouteTable/ipCidrRouteTable_data_access
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_interface
ip-forward-mib/inetCidrRouteTable/inetCidrRouteTable_data_access
udp-mib/data_access/udp_endpoint_common
udp-mib/data_access/udp_endpoint_linux
if-mib/data_access/interface_linux
if-mib/data_access/interface_ioctl
ip-mib/data_access/ipaddress_common
ip-mib/data_access/ipaddress_linux
ip-forward-mib/data_access/route_common
ip-forward-mib/data_access/route_linux
ip-forward-mib/data_access/route_ioctl
ip-mib/data_access/ipaddress_ioctl



/path/to/snmpd -H 2>&1 | grep community

    trapsink                 host [community] [port]
    trap2sink                host [community] [port]
    informsink               host [community] [port]
    trapcommunity            community-string
    com2sec                  [-Cn CONTEXT] secName IPv4-network-address[/netmask] community
    com2sec6                 [-Cn CONTEXT] secName IPv6-network-address[/netmask] community
    com2secunix              [-Cn CONTEXT] secName sockpath community
    authcommunity            authtype1,authtype2 community [default|hostname|network/bits [oid|-V view]]
    rwcommunity              community [default|hostname|network/bits [oid]]
    rocommunity              community [default|hostname|network/bits [oid]]
    rwcommunity6             community [default|hostname|network/bits [oid]]
    rocommunity6             community [default|hostname|network/bits [oid]]



> Date: Mon, 14 Apr 2008 05:57:41 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: rwcommunity in snmpd.conf ignored by snmpd ("unknown token" in	debug output)
> CC: [email protected]
> 
> Paul Cerqua wrote:
> > read_config: /etc/snmp/master/snmpd.conf:126 examining: rwcommunity prince
> > 
> > /etc/snmp/master/snmpd.conf: line 126: Warning: Unknown token: rwcommunity.
> 
> What's the output of:
> 
> - net-snmp-config --configure-options
> - net-snmp-config --snmpd-module-list | tr " " "\n"
> - /path/to/snmpd -H 2>&1 | grep community
> 
> 
> +Thomas
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> 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
> 

_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.