LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-08-2010, 06:16 PM   #1
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Rep: Reputation: 16
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
 
Old 06-08-2010, 06:24 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
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.
 
Old 06-08-2010, 06:29 PM   #3
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by carltm View Post
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:*
 
Old 06-08-2010, 06:36 PM   #4
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by carltm View Post
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
 
Old 06-08-2010, 06:52 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kopper27 View Post
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.
 
Old 06-08-2010, 07:00 PM   #6
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by TB0ne View Post
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
 
Old 06-08-2010, 08:36 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kopper27 View Post
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.
 
Old 06-09-2010, 12:48 PM   #8
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by TB0ne View Post
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
 
Old 06-09-2010, 02:57 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kopper27 View Post
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"???
 
  


Reply



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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:42 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