Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    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

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    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

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    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?

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    Check /var/run for a file with snmpd.pid and remove it.

    Maybe this file isn't getting deleted?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  5. #5
    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

  6. #6
    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.

  7. #7
    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

  8. #8
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •