Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-08-2010, 06:16 PM
|
#1
|
|
Member
Registered: Nov 2009
Posts: 147
Rep:
|
UDP Port 161
hi guys
My linux server have SNMP configure port by default is 161 (UDP)
now my monitor team - who are using Nagios - say the server are not being monitor
so check netstat -lnu and I see all is OK and snmp service is running fine
what else should I check about this port 161? to see if it is really opened and listening?
thanks a lot
|
|
|
|
06-08-2010, 06:24 PM
|
#2
|
|
Member
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697
Rep:
|
Try running snmpwalk on that server to make sure that you
get a response. If that works, try running snmpwalk on
the nagios server. If it doesn't work on the nagios
server, run iptables -nL to see if the port is being
blocked. Also check the configuration of the snmp
service, since it may only send responses to select
addresses.
|
|
|
|
06-08-2010, 06:29 PM
|
#3
|
|
Member
Registered: Nov 2009
Posts: 147
Original Poster
Rep:
|
Quote:
Originally Posted by carltm
Try running snmpwalk on that server to make sure that you
get a response. If that works, try running snmpwalk on
the nagios server. If it doesn't work on the nagios
server, run iptables -nL to see if the port is being
blocked. Also check the configuration of the snmp
service, since it may only send responses to select
addresses.
|
I forgot to add the netstat -lun output
Code:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
udp 0 0 0.0.0.0:161 0.0.0.0:*
|
|
|
|
06-08-2010, 06:36 PM
|
#4
|
|
Member
Registered: Nov 2009
Posts: 147
Original Poster
Rep:
|
Quote:
Originally Posted by carltm
Try running snmpwalk on that server to make sure that you
get a response. If that works, try running snmpwalk on
the nagios server. If it doesn't work on the nagios
server, run iptables -nL to see if the port is being
blocked. Also check the configuration of the snmp
service, since it may only send responses to select
addresses.
|
how can I run snmpwalk?
and yes the snmp is configured to send to specified IP
|
|
|
|
06-08-2010, 06:52 PM
|
#5
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,820
|
Quote:
Originally Posted by kopper27
how can I run snmpwalk?
|
Type in "snmpwalk". Read the man page for more info on the command.
Quote:
|
and yes the snmp is configured to send to specified IP
|
It should respond to localhost, or 127.0.0.1 also, so if you run snmpwalk on that machine locally, it'll respond. Might want to check and see if you're running IPtables, or blocking the port somehow.
|
|
|
|
06-08-2010, 07:00 PM
|
#6
|
|
Member
Registered: Nov 2009
Posts: 147
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
Type in "snmpwalk". Read the man page for more info on the command.
It should respond to localhost, or 127.0.0.1 also, so if you run snmpwalk on that machine locally, it'll respond. Might want to check and see if you're running IPtables, or blocking the port somehow.
|
no iptables
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
I mean it was working OK and suddenly 6 servers Stopped working
|
|
|
|
06-08-2010, 08:36 PM
|
#7
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,820
|
Quote:
Originally Posted by kopper27
no iptables
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
I mean it was working OK and suddenly 6 servers Stopped working
|
This is much different than your first post, when you said "my linux server" (singular). Would help if you had given complete information in your first post.
One might fail...six don't, unless something changes further downstream, like a router/firewall in between those six and the monitoring server.
|
|
|
|
06-09-2010, 12:48 PM
|
#8
|
|
Member
Registered: Nov 2009
Posts: 147
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
This is much different than your first post, when you said "my linux server" (singular). Would help if you had given complete information in your first post.
One might fail...six don't, unless something changes further downstream, like a router/firewall in between those six and the monitoring server.
|
sorry I did not say 6 servers
yeah I told them the same thing before posting here 1 server is OK but 6 having the same issue I told them the only thing shared by all of them is network..
but my networking team is so dump....
yeah it was a networking issue
thanks a lot
|
|
|
|
06-09-2010, 02:57 PM
|
#9
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,820
|
Quote:
Originally Posted by kopper27
sorry I did not say 6 servers
yeah I told them the same thing before posting here 1 server is OK but 6 having the same issue I told them the only thing shared by all of them is network..
but my networking team is so dump....
yeah it was a networking issue
thanks a lot
|
Really?? They're "dump"??? Or do you mean "dumb"???
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
UDP port 5353
|
WannaLearnLinux |
Linux - Security |
17 |
05-05-2011 01:26 PM |
|
UDP port
|
answerme |
Linux - Newbie |
8 |
06-05-2008 07:45 AM |
|
udp on port 5005
|
gabsik |
Linux - Security |
4 |
07-17-2006 11:12 PM |
|
Port Tcp/udp
|
rlnd |
Linux - Networking |
1 |
06-11-2006 01:05 PM |
|
UDP Port 1697
|
RandomIZE |
Linux - Networking |
5 |
03-23-2004 03:47 PM |
All times are GMT -5. The time now is 05:38 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|