LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-10-2010, 07:25 AM   #1
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Issues with snmpd on CentOS5.5.


Hello all,

I am trying to install and configure MRTG on this server running squid on CentOS5.5 Final. I installed net-snmp package and all the dependencies using yum. Have configured snmp.conf.
This is this
Code:
com2sec local localhost public
com2sec mynetwork 192.168.2.0/24        public
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
view all included .1 80
access MyRWGroup "" any noauth exact all none none
access MyROGroup "" any noauth exact all all none
Sorry clicked submit instead.
snmp daemon is running but is not listening.

Quote:
netstat -tan | egrep "16[1,2]"
Shows nothing.

But ps aux | grep snmp shows this:
Code:
root      3490  0.0  0.3  27392  6504 ?        Sl   17:27   0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a
root      3822  0.0  0.0   3924   704 pts/0    S+   17:51   0:00 grep snmp
And
Code:
snmpwalk -v 1 localhost -c public
gives this error
Code:
Timeout: No Response from localhost
But if I do snmpwalk -v 1 192.168.2.1 -c public I do get the output.
And there is no firewall issue. I have checked it.

Any thoughts?
Attached Files
File Type: txt snmpd.log.tar.gz.bz2.txt (247.2 KB, 7 views)

Last edited by linuxlover.chaitanya; 06-10-2010 at 07:46 AM.
 
Old 06-10-2010, 07:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
snmp is a udp protocol, your -t in the netstat only looks for tcp.

Cue face palm....
 
Old 06-10-2010, 09:26 AM   #3
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
From my Centos 5.5 Install

acid_kewpie - how come I see snmpd listed as both a tcp and udp process listening on different ports?

Code:
# netstat -ntupl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 127.0.0.1:2208              0.0.0.0:*                   LISTEN      2694/hpiod          
tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      3648/snmpd          
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      2424/portmap        
tcp        0      0 0.0.0.0:945                 0.0.0.0:*                   LISTEN      2459/rpc.statd      
tcp        0      0 192.168.122.1:53            0.0.0.0:*                   LISTEN      2989/dnsmasq        
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      2721/cupsd          
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      2755/sendmail: acce 
tcp        0      0 127.0.0.1:2207              0.0.0.0:*                   LISTEN      2699/python         
tcp        0      0 ::ffff:127.0.0.1:8005       :::*                        LISTEN      2805/java           
tcp        0      0 :::8009                     :::*                        LISTEN      2805/java           
tcp        0      0 :::8080                     :::*                        LISTEN      2805/java           
tcp        0      0 :::22                       :::*                        LISTEN      2712/sshd           
udp        0      0 0.0.0.0:161                 0.0.0.0:*                               3648/snmpd          
udp        0      0 0.0.0.0:939                 0.0.0.0:*                               2459/rpc.statd      
udp        0      0 0.0.0.0:942                 0.0.0.0:*                               2459/rpc.statd      
udp        0      0 192.168.122.1:53            0.0.0.0:*                               2989/dnsmasq        
udp        0      0 0.0.0.0:67                  0.0.0.0:*                               2989/dnsmasq        
udp        0      0 0.0.0.0:68                  0.0.0.0:*                               2332/dhclient       
udp        0      0 0.0.0.0:44264               0.0.0.0:*                               2931/avahi-daemon:  
udp        0      0 0.0.0.0:5353                0.0.0.0:*                               2931/avahi-daemon:  
udp        0      0 0.0.0.0:111                 0.0.0.0:*                               2424/portmap        
udp        0      0 0.0.0.0:631                 0.0.0.0:*                               2721/cupsd          
udp        0      0 10.217.106.44:123           0.0.0.0:*                               2737/ntpd           
udp        0      0 127.0.0.1:123               0.0.0.0:*                               2737/ntpd           
udp        0      0 0.0.0.0:123                 0.0.0.0:*                               2737/ntpd           
udp        0      0 :::56889                    :::*                                    2931/avahi-daemon:  
udp        0      0 :::5353                     :::*                                    2931/avahi-daemon:  
udp        0      0 ::1:123                     :::*                                    2737/ntpd           
udp        0      0 fe80::219:b9ff:fe25:123     :::*                                    2737/ntpd           
udp        0      0 :::123                      :::*                                    2737/ntpd

Last edited by alli_yas; 06-10-2010 at 09:32 AM.
 
Old 06-10-2010, 09:29 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by alli_yas View Post
From my Centos 5.5 Install

Code:
# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 127.0.0.1:2208              0.0.0.0:*                   LISTEN      2694/hpiod          
tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      3648/snmpd          
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      2424/portmap        
tcp        0      0 0.0.0.0:945                 0.0.0.0:*                   LISTEN      2459/rpc.statd      
tcp        0      0 192.168.122.1:53            0.0.0.0:*                   LISTEN      2989/dnsmasq        
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      2721/cupsd          
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      2755/sendmail: acce 
tcp        0      0 127.0.0.1:2207              0.0.0.0:*                   LISTEN      2699/python         
tcp        0      0 ::ffff:127.0.0.1:8005       :::*                        LISTEN      2805/java           
tcp        0      0 :::8009                     :::*                        LISTEN      2805/java           
tcp        0      0 :::8080                     :::*                        LISTEN      2805/java           
tcp        0      0 :::22                       :::*                        LISTEN      2712/sshd
what are we looking for here?? You might wish to actually say why you're posting something... if you're referring to the snmpd process there, then that's a SMUX service, not standard snmp.
 
Old 06-10-2010, 09:36 AM   #5
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Quote:
what are we looking for here?? You might wish to actually say why you're posting something...
Ummm...firstly I pasted the wrong command - have edited accordingly. What I was trying to show is how to show udp protocol processes.

I was trying to help the OP, don't think your response is warranted? Anyway you are a mod so I apologise.
 
Old 06-11-2010, 12:02 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
snmp is a udp protocol, your -t in the netstat only looks for tcp.

Cue face palm....
Ok. Sorry. This is the output without -t option.

netstat -au | egrep "16[1,2]"
Code:
tcp        0      0 192.168.1.3:51619           216.12.216.18:8383          ESTABLISHED 
tcp        0      0 192.168.2.1:3128            192.168.2.1:55161           TIME_WAIT   
udp        0      0 0.0.0.0:161                 0.0.0.0:*
 
Old 06-11-2010, 04:37 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
I could not have been more stupid. It was tcp wrappers issue. snmp: ALL in hosts.allow did it. Sorry to bother you all. Now will make it more restrictive.
 
Old 06-12-2010, 01:39 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
One more stupid issue from me. yes, I know there have been many but I can not help.
Can anyone help me understand this mrtg graph? What does X axis denote?
Attached Thumbnails
Click image for larger version

Name:	localhost_2-day.png
Views:	29
Size:	1.7 KB
ID:	3823  
 
Old 06-12-2010, 02:26 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
pretty clearly a 24 hour scale to me.
 
Old 06-12-2010, 04:40 AM   #10
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Yeah, that is what I thought but I am unable to understand how it counts from 0? On the right of 0 it starts from 22 and goes till 4? And on right it is in reverse?
 
Old 06-12-2010, 11:36 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the red arrow points the direction of time. It is "backwards" in many respects but keeps the new data near the y axis and overtime scrolls in a more comfortable way. 0 is midnight. There are lots of midnights, there's one on most days as it happens actually. ;-)
 
1 members found this post helpful.
Old 06-14-2010, 02:42 AM   #12
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Thanks Chris for confirming.
 
Old 06-14-2010, 02:43 AM   #13
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Original Poster
Rep: Reputation: Disabled
Marking the thread as solved but will want to continue related issues here on the same thread, if you dont mind, Chris.
 
  


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
VIM 7.2 upgrade issues - CentOS5 deibertine Linux - Software 7 06-02-2010 06:20 PM
Issues installing Coldfusion8 on CentOS5... b10m3ch4 Linux - Server 0 12-06-2009 06:16 PM
HP Proliant ML370, G5 has issues with centos5.0 installation akistam Linux - Server 1 05-06-2009 11:13 AM
issues loading vmware 1.06 on centos5 Torensmith Linux - Newbie 1 09-05-2008 01:35 PM
snmpd: relocation error snmpd:undefined symbol: lastAddrAge Strike2000 Slackware 0 02-11-2008 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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