LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-23-2007, 06:22 PM   #1
Colosus
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Rep: Reputation: 0
[CentOS] SNMP working on localhost, failing remotely


Hello all,

I'm hoping someone here can help me out as I'm out of ideas. I recently installed snmp on 3 CentOS servers and have a FreeBSD machine running on my desktop with Cacti, et al. Of the 3 servers, only 1 is working. I installed them all the same way using yum and configuring snmpd.conf for my setup. Cacti is able to communicate with one of the machines and all the machines can snmpwalk using localhost, but 2 of them can not do so remotely.

I changed the configuration back to default settings and public community just to see if I could even get a "system" response, but it reports "Timeout: No Response from <host>". I disabled iptables on all the hosts and made sure selinux was disabled and there are no hardware firewalls in place.

The snmp communication is happening over the internet, the boxes are not on the same network. Is there any reason why I would continue to get timeouts to these other two hosts? Thanks.
 
Old 03-23-2007, 09:51 PM   #2
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Does nmap show it open ... if you run it from the remote host ?
Code:
n600c ~ # nmap 192.168.1.102 -sU -p 161

Starting Nmap 4.20 ( http://insecure.org ) at 2007-03-23 21:50 EDT
Interesting ports on 192.168.1.102:
PORT    STATE         SERVICE
161/udp open|filtered snmp
 
Old 03-23-2007, 10:11 PM   #3
Colosus
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dxqcanada
Does nmap show it open ... if you run it from the remote host ?
Code:
n600c ~ # nmap 192.168.1.102 -sU -p 161

Starting Nmap 4.20 ( http://insecure.org ) at 2007-03-23 21:50 EDT
Interesting ports on 192.168.1.102:
PORT    STATE         SERVICE
161/udp open|filtered snmp

PORT STATE SERVICE
161/udp open|filtered snmp

Nmap finished: 1 IP address (1 host up) scanned in 6.729 seconds


Yep.
 
Old 03-24-2007, 01:45 AM   #4
Colosus
LQ Newbie
 
Registered: Mar 2007
Posts: 6

Original Poster
Rep: Reputation: 0
So I did some tcpdumps on the machines. One was getting the snmpget requests and one wasn't. I'm going to assume the one that isn't is due to a host firewall that I'm not aware of (leased boxes) and I'll deal with that on Monday.

The other was an unknown configuration issue. After removing and reinstalling net-snmp and net-snmp-utils and editing the conf file (to exactly what it was before) it works fine now. *shrug* Maybe I typo'd something that I couldn't see.

Anyway, thanks for the help.
 
  


Reply

Tags
snmp, snmpd


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
NFS export to localhost failing XicKy Linux - General 1 12-14-2006 01:47 PM
rpm and yum commands failing on CentOS 4.2 amussaw Linux - Newbie 1 03-21-2006 11:06 AM
How to: Intalling CentOS remotely using a remote console? svenger Linux - Software 0 03-11-2006 07:43 PM
centos 4.2: terminal bell works remotely, but not locally hawarden Linux - General 2 10-28-2005 03:39 PM
snmp on localhost boemitsu Slackware 1 06-08-2004 03:17 PM


All times are GMT -5. The time now is 09:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration