Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    11

    Default how to disable mrtg ???

    hi

    i have a server with this features:

    Processor Info

    Processor #1 Vendor: AuthenticAMD
    Processor #1 Name: AMD Athlon(tm) XP 2000+
    Processor #1 speed: 1666.399 MHz
    Processor #1 cache size: 256 KB


    Memory Information
    Memory: 220908k/229312k available (1334k kernel code, 6232k reserved, 1001k data, 132k init, 0k highmem)


    System Information
    Linux sp0112a.serverpronto.com 2.4.20-35.9.legacy #1 Tue Jul 6 03:42:27 EDT 2004 i686 athlon i386 GNU/Linux


    Physical Drives
    hda: WDC WD400BB-75FRA0, ATA DISK drive
    hda: attached ide-disk driver.
    hda: host protected area => 1
    hda: 78125000 sectors (40000 MB) w/2048KiB Cache, CHS=4863/255/63, UDMA(100)


    and i want to disable the mrtg, because it use to much resources andthe load of my server is always about 40 or 30 :s

    and i only have 10 website hosted and conting all the websites the number of visitors is not higher that 5000

    look how much use this process:


    Top Process %CPU 22.0 /usr/bin/perl /usr/bin/mrtg /etc/mrtg/mrtg.cfg
    Top Process %CPU 21.0 /usr/bin/perl /usr/bin/mrtg /etc/mrtg/mrtg.cfg


    i wnat to delete it

    but i don't know how to doed

    plz help me!!

  2. #2
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    You might prefer to disable it rather than deleting in the event you want to use it again?
    Assuming Linux:
    Edit /etc/mrtg/mrtg.cfg - change "RunAsDameon:Yes" to No.
    Then "killproc mrtg -9"

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    11

    Default

    my /etc/mrtg/mrtg.cfg says this:




    ######################################################################
    # Multi Router Traffic Grapher -- Example Configuration File
    ######################################################################
    # This file is for use with mrtg-2.0
    #
    # Note:
    #
    # * Keywords must start at the begin of a line.
    #
    # * Lines which follow a keyword line which do start
    # with a blank are appended to the keyword line
    #
    # * Empty Lines are ignored
    #
    # * Lines starting with a # sign are comments.

    # Where should the logfiles, and webpages be created?

    # Minimal mrtg.cfg
    #--------------------

    WorkDir: /var/www/html/mrtg
    #Target[r1]: 2ublic@myrouter.somplace.edu
    #MaxBytes[r1]: 1250000
    #Title[r1]: Traffic Analysis
    #PageTop[r1]: <H1>Stats for our Ethernet</H1>

  4. #4
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    rpm -e mrtg <- that should remove it for you.
    Beau Henderson

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2003
    Posts
    647

    Default

    You might want to be careful with that. There was a bug where without mrtg, cpanellogd (I believe) spawned indefinitely.

    mrtg is used by cPanel. Should find out why it's using so much resources, rather than just removing it.

  6. #6
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Nickn, I believe its rrdtool that cpanel requires not mrtg.
    Beau Henderson

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2003
    Posts
    647

    Default

    Ah..you're right.

  8. #8
    Member
    Join Date
    Oct 2004
    Posts
    11

    Default

    root@sp0112a [~]# rpm -e mrtg
    error: package mrtg is not installed


    :S

  9. #9
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    I'll have a go

    Here's a run down of everywhere I can think for you to look logged in as root:

    rm /etc/cron.d/mrtg
    service mrtg stop
    chkconfig mrtg off
    killall mrtg


    Also:

    crontab -e

    If there are any lines running mrtg, delete them.

    That usually covers it

    Note: You might get errors with one or more of the above, depending on how mrtg is running, but if at least one works, you should be rid of it.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default

    Yep get rid of it, too much server load...

Similar Threads & Tags
Similar threads

  1. Mrtg Disable and uninstall ?
    By Tymsah in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-15-2009, 04:52 PM
  2. Mrtg
    By stuartd in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-19-2007, 10:12 AM
  3. Help - MRTG
    By phpman in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-20-2003, 04:24 PM
  4. Is there a special way to disable MRTG?
    By DWHS.net in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-14-2003, 01:03 AM
  5. mrtg
    By linuxnewbie in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-04-2002, 10:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube