Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    24

    Default how can i install MRTG on CentOS

    i can't install it with this steps
    http://forums.cpanel.net/showthread....g+installation

  2. #2
    Member
    Join Date
    Apr 2003
    Location
    Lewisville, Tx
    Posts
    968

    Default

    Why not post in that thread where people are actively working on the installs. Getting MRTG running requires reading the docs and compiling/configuring it correctly unless you can find a package that is available like the one in the thread.
    Kris
    NCServ, LLC.
    WebHosting - Dedicated Servers - Colocation
    sales@ncerv.com

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    Quote Originally Posted by zinehost
    I am running centos 4 and I was able to install it with these exact instructions:

    1: rpm -e mrtg
    2: rpm http://www.interxstream.com/mrtg-2.9...panel.i386.rpm -Uvh
    3: cd /usr/lib
    4: mv libpng.so.2 libpng.so.2.OLD
    5: ln -s libpng.so.3 libpng.so.2
    6: pico /etc/sysconfig/i18n
    7: change LANG to LANG="en_US"
    8: Start and stop MTRG several times ignoring errors ... service mrtg start/stop/restart
    9: chkconfig --add mrtg
    10. Add this line to httpd.conf at ver top: Alias /mrtg/ /usr/local/apache/htdocs/mrtg/
    11. Restart httpd - httpd stop -> httpd startssl
    11: Now check http://YourMainIP/mrtg/

    Don't forget the trailing "/" on step 11....

    Regards,
    Damion

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    4

    Default

    Just run the following command and it will install mrtg automatically for you.

    yum install mrtg

    Regards

  5. #5
    Member Adrnalnrsh's Avatar
    Join Date
    Apr 2005
    Location
    AZ
    Posts
    74

    Default

    For some reason it seems that UPCP breaks MRTG every night. I installed this yesterday, everything was working until this morning, where I started getting a ton of errors. Which I didnt copy.

    Then I tried to restart MRTG by doing a service mrtg restart, and it was unrecognized. I was able to start it by doing a /usr/bin/mrtg /etc/mrtg/mrtg.cfg start and then it still wasnt working, so what happened?

    I do a chkconfig --list |grep mrtg and its not there anymore.

    I try to do a chkconfig --add mrtg and I get an error.

    chkconfig --add mrtg
    error reading information on service mrtg: No such file or directory
    Last edited by Adrnalnrsh; 04-27-2006 at 03:55 PM.

  6. #6
    Member
    Join Date
    May 2004
    Posts
    116

    Default

    With witch install did you do it:

    [recommended]yum install mrtg

    or

    1: rpm -e mrtg
    2: rpm http://www.interxstream.com/mrtg-2.9...panel.i386.rpm -Uvh
    3: cd /usr/lib
    4: mv libpng.so.2 libpng.so.2.OLD
    5: ln -s libpng.so.3 libpng.so.2
    6: pico /etc/sysconfig/i18n
    7: change LANG to LANG="en_US"
    8: Start and stop MTRG several times ignoring errors ... service mrtg start/stop/restart
    9: chkconfig --add mrtg
    10. Add this line to httpd.conf at ver top: Alias /mrtg/ /usr/local/apache/htdocs/mrtg/
    11. Restart httpd - httpd stop -> httpd startssl
    11: Now check http://YourMainIP/mrtg/

    If it is the last you can fix it by the following way:
    pico /etc/yum.conf
    find: exclude=httpd* mysql* php* perl* spamassassin* mod_ssl* kernel* courier* apache* exim*

    add: libpng* png*


    Good luck!

  7. #7
    Member Adrnalnrsh's Avatar
    Join Date
    Apr 2005
    Location
    AZ
    Posts
    74

    Default

    It was the last one, I will try this out. Thanks.

  8. #8
    Member Adrnalnrsh's Avatar
    Join Date
    Apr 2005
    Location
    AZ
    Posts
    74

    Default

    Well, I made the changes and MRTG has been destroyed again.

    Here are a few things that start appearing in the console.

    [/usr/local/apache/htdocs]# service mrtg stop
    mrtg: unrecognized service
    [/usr/local/apache/htdocs]# WARNING: Running '/etc/mrtg/system network eth0': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system network eth0'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system tcp': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system tcp'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system load': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system load'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system swap': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system swap'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system processes': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system processes'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system uptime': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system uptime'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/email-totals1 MAIL-HOST': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/email-totals1 MAIL-HOST'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/email-queue1 MAIL-HOST': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/email-queue1 MAIL-HOST'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/email-count1 MAIL-HOST': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/email-count1 MAIL-HOST'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system network eth0': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system network eth0'
    Maybe the external command did not even start. (No such file or directory)

  9. #9
    Member
    Join Date
    May 2004
    Posts
    116

    Default

    This is the script that mrtg.cfg uses.

    Maybe just un install it and use, because the mrtg is very old:

    yum install mrtg

  10. #10
    Member Adrnalnrsh's Avatar
    Join Date
    Apr 2005
    Location
    AZ
    Posts
    74

    Default

    I know about the mrtg.cfg file, the problem is upcp breaks it. Anyhow, I found something that may fix it.

  11. #11
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    http://forums.cpanel.net/showthread....289#post158289

    This will tell upcp not to update mrtg.

Similar Threads & Tags
Similar threads

  1. MRTG for Centos 4.2 and Cpanel
    By Wallaby in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 01-11-2009, 09:01 AM
  2. cannot install mrtg
    By Spiral in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-29-2006, 04:34 PM
  3. mrtg on centos?
    By 10101 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-06-2006, 12:20 AM
  4. MRTG for Centos 4
    By shivamxp in forum cPanel Developers
    Replies: 1
    Last Post: 05-24-2005, 10:08 AM
  5. How can i install MRTG?
    By Yojek in forum cPanel Developers
    Replies: 2
    Last Post: 04-15-2005, 06:44 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube