LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 11-05-2009, 03:13 AM   #1
jaychoksi2003
LQ Newbie
 
Registered: Oct 2005
Posts: 9
Thanked: 0
snmp service not start


[Log in to get rid of this advertisement]
Hi,

My server's snmp service are not running. When I give command like service snmpd start its starting successfully but when I check service snmp stats its saw like this "snmpd dead but subsys locked".

I have remove the cat /var/lock/subsys/snmpd file but then also its not running.
There is nothing came in log file /var/log/messages and even /var/log/snmp.

My Server OS: Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Kernel Version: 2.6.18-53.el5
SNMP Version:
net-snmp-libs-5.3.1-19.el5
net-snmp-utils-5.3.1-14.el5
net-snmp-5.3.1-14.el5


Can any one help me to resolve this issue.

Thanks & Regards,
Jay Choksi

Last edited by jaychoksi2003; 11-05-2009 at 03:15 AM..
windows_98_nt_2000 jaychoksi2003 is offline     Reply With Quote
Old 11-05-2009, 03:51 AM   #2
centosboy
Member
 
Registered: May 2009
Location: london
Distribution: centos5/opensuse11
Posts: 585
Thanked: 69
Quote:
Originally Posted by jaychoksi2003 View Post
Hi,

My server's snmp service are not running. When I give command like service snmpd start its starting successfully but when I check service snmp stats its saw like this "snmpd dead but subsys locked".

I have remove the cat /var/lock/subsys/snmpd file but then also its not running.
There is nothing came in log file /var/log/messages and even /var/log/snmp.

My Server OS: Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Kernel Version: 2.6.18-53.el5
SNMP Version:
net-snmp-libs-5.3.1-19.el5
net-snmp-utils-5.3.1-14.el5
net-snmp-5.3.1-14.el5


Can any one help me to resolve this issue.

Thanks & Regards,
Jay Choksi
try starting from the executable.

Code:
/usr/sbin/snmpd



check there are no missing dependent libraries

Code:
ldd `which snmpd`
windows_xp_2003 centosboy is online now     Reply With Quote
Old 11-05-2009, 04:33 AM   #3
jaychoksi2003
LQ Newbie
 
Registered: Oct 2005
Posts: 9
Thanked: 0

Original Poster
Quote:
Originally Posted by centosboy View Post
try starting from the executable.

Code:
/usr/sbin/snmpd



check there are no missing dependent libraries

Code:
ldd `which snmpd`
Hi,

I have give the /usr/sbin/snmpd but still same problem. and below is output of ldd `which snmpd` command.

[root@SERVER ~]# ldd `which snmpd`
linux-gate.so.1 => (0x0087d000)
libnetsnmpmibs.so.10 => /usr/lib/libnetsnmpmibs.so.10 (0x0051b000)
libnetsnmpagent.so.10 => /usr/lib/libnetsnmpagent.so.10 (0x0073b000)
libnetsnmphelpers.so.10 => /usr/lib/libnetsnmphelpers.so.10 (0x007ad000)
libwrap.so.0 => /usr/lib/libwrap.so.0 (0x00acd000)
libnetsnmp.so.10 => /usr/lib/libnetsnmp.so.10 (0x00110000)
libz.so.1 => /usr/lib/libz.so.1 (0x00fbe000)
libcrypto.so.6 => /lib/libcrypto.so.6 (0x001c8000)
libsensors.so.3 => /usr/lib/libsensors.so.3 (0x003d7000)
libperl.so => /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.
so (0x00967000)
libresolv.so.2 => /lib/libresolv.so.2 (0x002fb000)
libnsl.so.1 => /lib/libnsl.so.1 (0x0030e000)
libdl.so.2 => /lib/libdl.so.2 (0x00901000)
libm.so.6 => /lib/libm.so.6 (0x00325000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00d1d000)
libutil.so.1 => /lib/libutil.so.1 (0x0034c000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00350000)
libc.so.6 => /lib/libc.so.6 (0x00e15000)
libsysfs.so.2 => /usr/lib/libsysfs.so.2 (0x00b3b000)
/lib/ld-linux.so.2 (0x0094c000)
windows_98_nt_2000 jaychoksi2003 is offline     Reply With Quote
Old 11-05-2009, 04:45 AM   #4
centosboy
Member
 
Registered: May 2009
Location: london
Distribution: centos5/opensuse11
Posts: 585
Thanked: 69
Quote:
Originally Posted by jaychoksi2003 View Post
Hi,

I have give the /usr/sbin/snmpd but still same problem. and below is output of ldd `which snmpd` command.

[root@SERVER ~]# ldd `which snmpd`
linux-gate.so.1 => (0x0087d000)
libnetsnmpmibs.so.10 => /usr/lib/libnetsnmpmibs.so.10 (0x0051b000)
libnetsnmpagent.so.10 => /usr/lib/libnetsnmpagent.so.10 (0x0073b000)
libnetsnmphelpers.so.10 => /usr/lib/libnetsnmphelpers.so.10 (0x007ad000)
libwrap.so.0 => /usr/lib/libwrap.so.0 (0x00acd000)
libnetsnmp.so.10 => /usr/lib/libnetsnmp.so.10 (0x00110000)
libz.so.1 => /usr/lib/libz.so.1 (0x00fbe000)
libcrypto.so.6 => /lib/libcrypto.so.6 (0x001c8000)
libsensors.so.3 => /usr/lib/libsensors.so.3 (0x003d7000)
libperl.so => /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.
so (0x00967000)
libresolv.so.2 => /lib/libresolv.so.2 (0x002fb000)
libnsl.so.1 => /lib/libnsl.so.1 (0x0030e000)
libdl.so.2 => /lib/libdl.so.2 (0x00901000)
libm.so.6 => /lib/libm.so.6 (0x00325000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00d1d000)
libutil.so.1 => /lib/libutil.so.1 (0x0034c000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00350000)
libc.so.6 => /lib/libc.so.6 (0x00e15000)
libsysfs.so.2 => /usr/lib/libsysfs.so.2 (0x00b3b000)
/lib/ld-linux.so.2 (0x0094c000)

everything looks in ordeer.
has this ever worked??
how about re-installing? not the ideal solution, but worth a try?
otherwise run an strace and output to a file for analysis.

Code:
strace -o file /usr/sbin/snmpd

Last edited by centosboy; 11-05-2009 at 04:48 AM..
windows_xp_2003 centosboy is online now     Reply With Quote
Old 11-05-2009, 08:48 AM   #5
chiragrk
Member
 
Registered: Nov 2009
Location: India
Distribution: Xandros, Ubuntu
Posts: 60
Thanked: 2
Did you check if there is a zombie left behind from your earlier efforts of trying to get snmpd started?
Basically try `ps -aef | grep snmp` and see if there's no process by that name running. I know this is an obvious step - but worth reminding.
windows_98_nt_2000 chiragrk is offline     Reply With Quote
Old 11-05-2009, 10:21 PM   #6
jaychoksi2003
LQ Newbie
 
Registered: Oct 2005
Posts: 9
Thanked: 0

Original Poster
Quote:
Originally Posted by chiragrk View Post
Did you check if there is a zombie left behind from your earlier efforts of trying to get snmpd started?
Basically try `ps -aef | grep snmp` and see if there's no process by that name running. I know this is an obvious step - but worth reminding.
Yes I have check that there is no zombie process related to SNMP.
windows_98_nt_2000 jaychoksi2003 is offline     Reply With Quote
Old 11-06-2009, 04:01 AM   #7
centosboy
Member
 
Registered: May 2009
Location: london
Distribution: centos5/opensuse11
Posts: 585
Thanked: 69
what about the result of strace??
windows_xp_2003 centosboy is online now     Reply With Quote

Reply

Bookmarks


Thread Tools

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
snmp - nagios wont detect service status change noob_d Linux - Server 2 06-03-2008 01:34 PM
How to disable snmp service on T3. UltraSoul Solaris / OpenSolaris 4 03-19-2007 03:48 AM
SNMP Service jmmo1981 Linux - Networking 2 02-19-2007 05:26 AM
SNMP Trap Broker service in Linux siddegok Linux - Software 3 04-06-2006 10:49 AM
disable cold start and warm start snmp traps chkisco Linux - Newbie 0 10-28-2005 03:58 AM


All times are GMT -5. The time now is 03:34 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration