Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-snmp snmpd authentication problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rvalles
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2003
Posts: 121

PostPosted: Tue Nov 20, 2007 9:53 am    Post subject: net-snmp snmpd authentication problems Reply with quote

I've been trying to set up cacti on my network, following some guide which can be found at
http://gentoo-wiki.com/Cacti/SNMP_host_setup
but so far, I haven't had luck with the SNMP part:
Code:

tsunami ~ # net-snmp-config --create-snmpv3-user -a "testpass" cacti
adding the following line to /var/lib/net-snmp/snmpd.conf:
   createUser cacti MD5 "testpass" DES
adding the following line to /usr/share/snmp/snmpd.conf:
   rwuser cacti
tsunami ~ # ln -s /usr/share/snmp/snmpd.conf /etc/snmp/snmpd.conf
tsunami ~ # /etc/init.d/snmpd start
 * Starting net-snmpd ...                                                                                                                                                                                     [ ok ]
tsunami ~ # snmpwalk -v3 -u cacti -A "testpass" 127.0.0.1
Error in packet.
Reason: authorizationError (access denied to that object)

Now, I realized there is indeed a logfile.
Code:

hiyono snmp # rm /var/log/net-snmpd.log
rm: cannot remove `/var/log/net-snmpd.log': No such file or directory
hiyono snmp # /etc/init.d/snmpd start
 * Starting net-snmpd ...                                                                                                                                                                                     [ ok ]
hiyono snmp # cat  /var/log/net-snmpd.log
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()
duplicate table data attempted to be entered. row exists
net-snmp: 7 error(s) in config file(s)
NET-SNMP version 5.4.1

Is something broken? Am I doing something wrong? Cacti cannot reach the snmpd, either.

Thanks.
Back to top
View user's profile Send private message
MaartenZzZ
n00b
n00b


Joined: 28 Oct 2007
Posts: 61
Location: Bergen op Zoom, The Netherlands

PostPosted: Sun Mar 09, 2008 3:46 pm    Post subject: Reply with quote

I have the same problem after an update (I guess).

Code:
NewYork ~ # cat /var/log/net-snmpd.log
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()
NET-SNMP version 5.4.1
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
Connection from UDP: [127.0.0.1]->[127.0.0.1]:-32768
NewYork ~ #


Someone with an answer?

Thank you :lol:
_________________
Where to? Gentoo!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum