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.

MRTG errors after cpanel update

Discussion in 'General Discussion' started by kernow, Nov 30, 2011.

  1. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    After cpanel upcp ran last night several servers now getting this error:
    Stopping and restart does not fix problem :(
     
    #1 kernow, Nov 30, 2011
    Last edited: Nov 30, 2011
  2. geof

    geof Registered

    Joined:
    Jan 29, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    Same problem here:

    ERROR: I Quit! Another copy of mrtg seems to be running. Check /etc/mrtg/mrtg.pid
    Daemonizing MRTG ...
     
  3. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Of course when you check /etc/mrtg/mrtg.pid its empty .........
    My investigations have found that the new version of MRTG does not have its cron listed in crontab -e To access use
    /etc/cron.d/mrtg
    I stopped MRTG from running and then put a comment in front of the cron job, not an ideal fix I know, but it has stopped the errors and the tons of emails.
    Anyone have other ideas?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please try the following suggestion:

    http://forums.cpanel.net/f5/mrtg-cron-error-94397.html#post624681

    Found simply by searching google for the following error:

    The quotes are needed to force it to look for that exact error message. The first hits were all on our forum.
     
  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
  6. geof

    geof Registered

    Joined:
    Jan 29, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece

    ckh
    thanks for your help.
    That fixed it for me also
     
    #6 geof, Dec 1, 2011
    Last edited: Dec 1, 2011
  7. 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
    Don't thank me, thank Chirpy!!
     
  8. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Too messy, this is the best fix:
    Code:
    rm -fv /etc/cron.d/mrtg
    /etc/init.d/mrtg restart
     
  9. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Actually, I'm uncertain how deleting the actual cron helps a lot here. The code fix allows the cron to still work. I imagine there is indeed a purpose to the cron or it wouldn't exist? If you delete the cron, it doesn't exist anymore, so how is that a legitimate resolution?

    The option I provided disables the check for IPv6 support on systems not using IPv6, and it would allow the cron to still function.
     
  10. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    cpanelTristen, Thank you.
    I'm sure your answer fixes manually installed versions of MRTG, but the answer from Chirpy ConfigServer Blog » Search
    is for MRTG versions installed by configserver.com services which is what we have.
     
  11. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If that is the version they provide, why do they have a non-working cron in the first place that needs removed? My belief is that it works on IPv6 enabled systems without errors. If that is the case, then the fix I've noted still applies as the error is about IPv6 not being enabled and not about whether the installation was manual or not. It's an IPv6 error after all:

    You are certainly welcome to disable something that comes with a product you are using such as a cron. The cron being removed rather than fixing the code prompting one portion of the cron to error (the IPv6 portion) is not the better way to fix the issue imo.
     
  12. vicos

    vicos Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Well, looks like the problem is back...all 3 servers started complained early this morning. I wonder if the 2007 blog post from configserver.com is still the correct way to correct this issue?
     
    #12 vicos, Feb 22, 2012
    Last edited: Feb 22, 2012
  13. vicos

    vicos Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
  14. 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
    Had the same problem recently and it again worked for me....
     
  15. vicos

    vicos Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Can anyone explain why this is happening?
     
  16. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page