LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2009, 09:18 AM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
Debian + SNMPD does not work


hi,
SNMPD is running fine but it just don't accept requests

Code:
machine:~# nmap localhost -p 161

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-09-01 11:10 BRT
Interesting ports on localhost (127.0.0.1):
PORT    STATE  SERVICE
161/tcp closed snmp

Nmap finished: 1 IP address (1 host up) scanned in 0.036 seconds
machine:~# ps aux | grep snmp
snmp      5236  0.0  0.3   7972  3916 ?        S    11:08   0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1
root      5260  0.0  0.0   2876   756 pts/0    S+   11:10   0:00 grep snmp
machine:~# iptables -L INPUT
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
machine:~#
(part of the) configuration file:
Code:
####
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):

#       sec.name  source          community
#com2sec paranoid  default         public
com2sec readonly  default         public
#com2sec readwrite default         private


####
# Second, map the security names into group names:

#               sec.model  sec.name
group MyROSystem v1        paranoid
group MyROSystem v2c       paranoid
group MyROSystem usm       paranoid
group MyROGroup v1         readonly
group MyROGroup v2c        readonly
group MyROGroup usm        readonly
group MyRWGroup v1         readwrite
group MyRWGroup v2c        readwrite
group MyRWGroup usm        readwrite

####
# Third, create a view for us to let the groups have rights to:

#           incl/excl subtree                          mask
view all    included  .1                               80
view system included  .iso.org.dod.internet.mgmt.mib-2.system

####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

#                context sec.model sec.level match  read   write  notif
access MyROSystem ""     any       noauth    exact  system none   none
access MyROGroup ""      any       noauth    exact  all    none   none
access MyRWGroup ""      any       noauth    exact  all    all    none

# -----------------------------------------------------------------------------
regards
 
Old 09-02-2009, 02:33 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi,

I think snmpd listens on UDP/161 by default...

cheers,

kbp
 
Old 09-02-2009, 03:24 AM   #3
grzeslaw
Member
 
Registered: Nov 2008
Posts: 111

Rep: Reputation: 24
Yes, the snmpd deamon should work on UDP port.

Which version of snmpd U are use? v1 v2 v3?
How do you test it?

Show us the result of:
Code:
snmpwalk -Os -c public -v 1 127.0.0.1
 
Old 09-02-2009, 05:23 AM   #4
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
to MODS: this thread should be moved to -> Linux Server section

THanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
doing /etc/init.d/snmpd status gives "snmpd dead but pid file exists" kaushal143 Linux - Newbie 2 07-10-2008 02:55 AM
snmpd: relocation error snmpd:undefined symbol: lastAddrAge Strike2000 Slackware 0 02-11-2008 04:45 AM
snmpd help ryanlum General 0 11-20-2007 07:20 AM
snmpd help mraray Linux - Software 0 03-05-2006 12:23 AM
snmpd mdpniesta Linux - Networking 2 11-18-2004 10:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration