Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Servers
Reload this Page snmpd dead but pid file exist!!!
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Servers Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Reply
 
Thread Tools Display Modes
Old 03-01-2008   #1 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 11
snmpd dead but pid file exist!!!

I need help after installed net-snmp and net-snmp-utils and run the command below i got this error message "snmpd dead but pid file exists"

[root@server snmp]# service snmpd status
snmpd is stopped

[root@server snmp]# service snmpd start
Starting snmpd: [ OK ]

[root@server snmp]# service snmpd status
snmpd dead but pid file exists

[root@server snmp]# service snmpd restart
Starting snmpd: [FAILED]

anyone know how to solve this and what cause this problem? i havn't edit any configuration file yet!! (/etc/snmp/snmpd.conf)

i try to reboot
i try to deleted /var/run/snmpd.pid
i try to deleted /var/lock/subsys/snmp

none of them solve this problem?

Thanks in advance
azabu is offline   Reply With Quote
Old 03-02-2008   #2 (permalink)
Linux Enthusiast
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: Pennsylvania
Posts: 515
Look to see if there is a pid out there for snmpd with pidof.
If there is one then kill it
Restart snmpd
__________________

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 03-02-2008   #3 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 11
i ran that commend you suggested above after i run service snmpd start. (no pid show)

[root@server ~]# pidof snmpd
[root@server ~]#

here what happen after i restatr my machine

[root@server ~]# service snmpd status // first i check the status
snmpd is stopped
[root@server ~]# service snmpd start // then i start the servcie
Starting snmpd: [ OK ] // service start OK!! sound good!
[root@server ~]# service snmpd status // but after i check the status again i got this error
snmpd dead but pid file exists
[root@server ~]# service snmpd stop // i try to stop service
Stopping snmpd: [FAILED] // It's failed service can't stop
[root@server ~]# service snmpd status //i check the status again it's STOP!! howcome? it just told me it failed to stop!!
snmpd is stopped
[root@server ~]# service snmpd start
Starting snmpd: [ OK ]
[root@server ~]# service snmpd status
snmpd dead but pid file exists
[root@server ~]#

Can someone help me?
azabu is offline   Reply With Quote
Old 03-04-2008   #4 (permalink)
Linux Enthusiast
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: Pennsylvania
Posts: 515
Check /var/run for a file with snmpd.pid and remove it.

Maybe this file isn't getting deleted?
__________________

Regards
Robert

It is not just an adventure.
It is my job!!

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 03-05-2008   #5 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 11
Quote:
Originally Posted by Lazydog View Post
Check /var/run for a file with snmpd.pid and remove it.

Maybe this file isn't getting deleted?
Thank for your replay as i told above i already try to delete both files

- /var/run/snmpd.pid
- /var/lock/subsys/snmpd

but after i start the service again i got the same problem
azabu is offline   Reply With Quote
Old 03-06-2008   #6 (permalink)
Just Joined!
 
Join Date: Mar 2008
Posts: 1
I've had the very same problem.

I removed the snmpd.pid and the snmpd lock file, but still got the
snmpd dead but pid file exists

I'm using Centos4 so I did a
yum remove net-snmp
This removed net-snmp & net-snmp-utils packages.

I also removed any /etc/snmp & /var/net-snmp directories also removed the snmpd.pid and snmpd lock files again.

I then decided to do
yum update
This fixed any packages marked to update or obsoletion.

Once the yum update had finished I rebooted.

Then used yum again to install net-snmp
service snmpd start
service snmpd status
snmpd (pid 1235) is running...

Haven't figured out yet why doing the update has fixed my problem, but will update thread if or when I discover the cause.
POM-pey is offline   Reply With Quote
Old 03-07-2008   #7 (permalink)
Just Joined!
 
Join Date: Feb 2008
Posts: 11
Quote:
Originally Posted by POM-pey View Post
I've had the very same problem.

I removed the snmpd.pid and the snmpd lock file, but still got the
snmpd dead but pid file exists

I'm using Centos4 so I did a
yum remove net-snmp
This removed net-snmp & net-snmp-utils packages.

I also removed any /etc/snmp & /var/net-snmp directories also removed the snmpd.pid and snmpd lock files again.

I then decided to do
yum update
This fixed any packages marked to update or obsoletion.

Once the yum update had finished I rebooted.

Then used yum again to install net-snmp
service snmpd start
service snmpd status
snmpd (pid 1235) is running...

Haven't figured out yet why doing the update has fixed my problem, but will update thread if or when I discover the cause.
So there is nothing wrong with our configuation just the software's problem ....at least it solved our problem
azabu is offline   Reply With Quote
Old 06-25-2008   #8 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 1
I had the same problem. I did a

Code:
yum list installed | grep net-snmp
and it turned out that net-snmp-libs was a different version from the other packages. I did a

Code:
yum update net-snmp-libs
and all was good at last. Would have been nice if snmpd gave some sort of error instead of nothing.
MarquisMark is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
wine -20050930 pawn Wine 0 10-01-2005 05:26 PM
need help fixing buggy ACPI DSDT. anyone with ASL skills please help! variant Linux Programming & Scripting 3 06-05-2005 10:51 AM
bit tornado how to install in mandrake 10 tellus Mandriva Linux Help 6 03-12-2005 08:48 AM
USB key help Leper Khan Peripherals / Hardware 13 10-11-2004 01:55 PM
will Mplayer will playing windows media player format too ?? hasan Linux Newbie 30 10-02-2003 03:20 AM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 04:49 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0