The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Another copy of mrtg seems to be running

Discussion in 'General Discussion' started by Lestat, Nov 16, 2007.

  1. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    ERROR: I Quit! Another copy of mrtg seems to be running. Check /etc/mrtg/mrtg.pid
    Daemonizing MRTG
     
  2. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    How do I fix this?

    /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
     
  3. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    anyone have a clue?
     
  4. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Just started happening to me tonight to, every 5 minutes I get an email notice with the same error. Haven't been able to find out how/why yet.
     
  5. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    Happened with me too. Had to delete the cron in order to get the emails to quit coming....
     
  6. Secmas

    Secmas Well-Known Member

    Joined:
    Feb 18, 2005
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    This is happening to me as well.

    How do I fix this?
     
  7. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I checked crontab -e and I don't see anything about mrtg in there. Where did you delete the cron from?
     
    #7 Metro2, Nov 17, 2007
    Last edited: Nov 17, 2007
  8. ckh

    ckh Well-Known Member

    Joined:
    Dec 6, 2003
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Phoenix, AZ
    cPanel Access Level:
    DataCenter Provider
    It was in /etc/cron.d

    Chris
     
  9. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    Still nothing an emails still coming
    Cannot find in either place.
     
  10. Secmas

    Secmas Well-Known Member

    Joined:
    Feb 18, 2005
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    in /etc/cron.d look for a file called mrtg or similar and delete it. It will stop sending you the emails.
     
  11. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    /etc/cron.d is empty....... RH4ENT. Newest Cpanel release.
     
  12. Flyer

    Flyer Member

    Joined:
    Jun 15, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Does deleting /etc/cron.d/mrtg fix the problem, or just its symptoms? Why did last night's automatic update cause it to happen?
     
  13. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    Nevermind understood what you meant now ok I found and deleted. Now to see what happens.
     
  14. nzpli

    nzpli Member

    Joined:
    Nov 2, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nelson NZ
    cPanel Access Level:
    Root Administrator
    Good question.. anyone have an answer pse

    P
     
  15. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I was wondering the same thing here.

    ckh - thanks for pointing me to the right cron folder.
     
  16. Secmas

    Secmas Well-Known Member

    Joined:
    Feb 18, 2005
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Deleting the cron will just stop getting the emails every 5 minutes.

    I rised a support ticket at Cpanel and they said it is not their problem, but it started with the last cpanel update.
     
  17. mdelacruz

    mdelacruz Member

    Joined:
    Apr 24, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Commenting instead of deleting

    It's not better then commenting the cron instruction instead of deleting it? Why if we need the cron when someone solve the problem?

    I try to comment the cron instruction with a # at the beginning of the line but it didn't work, mails still coming in.

    This is the line inside the file:

    */5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok

    I tried...

    # */5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok

    Not working

    Any opinion?
     
  18. Secmas

    Secmas Well-Known Member

    Joined:
    Feb 18, 2005
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    In that case you can move the file to another directory in your server instead.
     
  19. SageBrian

    SageBrian Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    415
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    NY/CT (US)
    cPanel Access Level:
    Root Administrator
    Well, it happened after a cpanel update. So, something did something to something.

    Only one of my servers is doing this.
    Not sure what to do about it. If I understand correctly, just deleting the cron isn't a fix... it just doesn't alert us to the problem. I do the same thing with this huge fast growing ugly colorful mole on my arm. I just wear long sleeves shirts and the problem goes away.

    If it's not a cpanel problem (which it might not be), does anyone have an idea of where to look for a solution?
     
  20. Secmas

    Secmas Well-Known Member

    Joined:
    Feb 18, 2005
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    I have found this:
    http://forums.burst.net/showthread.php?t=751&page=6
    but have not tried it myself I am waiting to hear something from CPanel.
     
Loading...

Share This Page