Results 1 to 8 of 8
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 ...
- 03-01-2008 #1Just 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
- 03-02-2008 #2
Look to see if there is a pid out there for snmpd with pidof.
If there is one then kill it
Restart snmpd
- 03-02-2008 #3Just 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?
- 03-04-2008 #4
Check /var/run for a file with snmpd.pid and remove it.
Maybe this file isn't getting deleted?
- 03-05-2008 #5Just Joined!
- Join Date
- Feb 2008
- Posts
- 11
- 03-06-2008 #6Just 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.
- 03-07-2008 #7Just Joined!
- Join Date
- Feb 2008
- Posts
- 11
- 06-25-2008 #8Just Joined!
- Join Date
- Jun 2008
- Posts
- 1
I had the same problem. I did a
and it turned out that net-snmp-libs was a different version from the other packages. I did aCode:yum list installed | grep net-snmp
and all was good at last. Would have been nice if snmpd gave some sort of error instead of nothing.Code:yum update net-snmp-libs


Reply With Quote

