Page 1 of 4 123 ... LastLast
Results 1 to 20 of 61

Thread: HOWTO: Very easy RPM based MRTG installation

  1. #1
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326

    HOWTO: Very easy RPM based MRTG installation

    Before we go into it, this RPM was made by gpan (cheetaweb.com) and full credit goes out to him for this fantastic script!

    log into your server as root and follow the information below.

    # represents a command
    // represents a comment

    Disclaimer: The RPM is installed with no warranty of any kind and neither I, nor the makers of this RPM will take responsibility if it damages you server in any way, shape or form.

    This version of MRTG has the following (Yes, a premade CFG is included ) :

    - Traffic
    - Open Connections

    - Load Averages
    - Swap memory
    - Processes
    - Uptime & idle time
    - CPU Usage
    - Memory Usage

    Some may not work with DA, although i believe they all should. If you have any problems, comments or suggestions please post them in this thread

    # mkdir mrtg

    # cd mrtg

    # wget http://prowebuk.com/files/mrtg/mrtg-2.9.17-4ct.i386.rpm

    // if you wish to check the MD5, it is MD5: 013a1ee47032b6b7ab5147ca1960e56f

    # rpm -Uvh mrtg-2.9.17-4ct.i386.rpm

    // Check that a cron line for mrtg has not been added in /etc/crontab

    // you can run MRTG by running the following command:

    # service mrtg start

    You may recieve errors the first few times you run this, if you wish to remove the errors run the following command until you get a simple message stating it is starting MRTG:

    # service mrtg restart

    // MRTG Will not run as default when you reboot your server, to fix this do the following:

    # pico -w /etc/rc.d/rc.local

    // at the bottom of the file add the following line:

    /etc/rc.d/init.d/mrtg start

    // exit and save by press ctrl & X, press y to save.

    // You can now access your mrtg graphs by visiting:

    http://SERVER_IP/mrtg/

    Enjoy it!

    ** FIXES ADDED IN POST BELOW **

    Chris
    Last edited by ProWebUK; 11-22-2003 at 11:38 AM.
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  2. #2
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    ok, i have just realised DA does not like the mail and mrtg sections so here is the fix:

    # pico -w /etc/mrtg/mrtg.cfg

    // type ctrl & w to search and enter:

    mail

    // you should be highlighting the following section:

    <br><a href="mail.html">- Mail Usage</a><br><a href="mq.html">- Mqueue Usage</a>

    // You need to remove the following:

    <br><a href="mail.html">- Mail Usage</a><br><a href="mq.html">- Mqueue Usage</a>

    // once thats done type ctrl & w to search again, you need to search for:

    mail

    (again )

    delete, from the following section to the bottom of the CFG)

    #----------------------------------------
    # Mail.cfg: Mailstats plotting with MRTG
    #----------------------------------------


    // you must also remove the mqueue section below the mail section

    // to save the file press ctrl & x, press y to save.

    //finally remove the no longer used files:

    # rm /etc/mrtg/mqueue
    # rm /etc/mrtg/mailstats

    Chris
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  3. #3
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    Someone has reported a missing dependency:

    libpng.so.2

    You may want try the suggestion provided by john (link 3 posts down )

    Alternatively, you could *try* to do a fresh install of libpng

    Chris
    Last edited by ProWebUK; 11-22-2003 at 12:56 PM.
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  4. #4
    Join Date
    Jun 2003
    Posts
    1,471
    This looks very interesting. Looks like I'll be upgrading my MRTG to night
    Installatron Plugin is a native DirectAdmin plugin that provides you and your customers an intuitive interface to install, manage, upgrade, and backup/restore a premier collection of the best applications on the web, all instantly at the click of a button.

    Also: cPanel-to-DA converterBulk Domains and Sub-domain PluginDA User Tool

  5. #5
    Join Date
    Oct 2003
    Location
    Switzerland
    Posts
    2,099
    Some of us have installed MRTG manually. Would it be possible to post the cfg and sh files somewhere (or provide instructions to remove the old one )?
    Olivier
    interfaCentre - We design custom hosting solutions

    Custom apps, scripts and configurations for easy and secure access to all hosting services
    Full Personal Information Management suite with mobile synchronisation
    PHP, Ruby, Node.js and Python hosting with 1-click app install

  6. #6
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    Once logged in as root, go to wherever your mrtg is setup, go into the src directory and run the following command from there:

    # make uninstall

    from there you should be ok just go for your RPM install.

    Chris
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  7. #7
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    Regarding the libpng.so.2 dependency problem you may want to try what John has suggested here: http://www.directadmin.com/forum/sho...&threadid=1181

    Chris
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  8. #8
    Join Date
    Oct 2003
    Location
    Switzerland
    Posts
    2,099
    Originally posted by ProWebUK
    Once logged in as root, go to wherever your mrtg is setup, go into the src directory and run the following command from there:

    # make uninstall

    from there you should be ok just go for your RPM install.

    Chris
    No src directory in /usr/local/mrtg-2

    Maybe you meant the dir used to install mrtg? But no luck from there either unless I need to type ./configure, make, make uninstall ?
    Olivier
    interfaCentre - We design custom hosting solutions

    Custom apps, scripts and configurations for easy and secure access to all hosting services
    Full Personal Information Management suite with mobile synchronisation
    PHP, Ruby, Node.js and Python hosting with 1-click app install

  9. #9
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    Originally posted by interfasys
    ./configure, make, make uninstall ?
    where you typed ./configure to install mrtg first time, type the following:

    # cd /src
    # make uninstall
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  10. #10
    Join Date
    Oct 2003
    Location
    Switzerland
    Posts
    2,099
    That's what I thought at first, but I got a:
    make: *** No rule to make target `uninstall'. Stop.

    There is only one file in the src dir : rateup.c

    Is it safe to retype ./configure, etc. ?
    Olivier
    interfaCentre - We design custom hosting solutions

    Custom apps, scripts and configurations for easy and secure access to all hosting services
    Full Personal Information Management suite with mobile synchronisation
    PHP, Ruby, Node.js and Python hosting with 1-click app install

  11. #11
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    hmm in that case I am unsure.....

    I suggest you stop your current MRTG and remove any cfgs you currently have to ensure that it doesn't get in the way!

    Once you have done that try to install the rpm, i'm hoping it wont do any harm....

    Chris
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  12. #12
    Join Date
    Oct 2003
    Location
    Switzerland
    Posts
    2,099
    Deleted /usr/local/mrtg-2, installed the rpm and I now have nice new graphs

    I hate to have fragments from old installs, but I'll take care of that later.
    Olivier
    interfaCentre - We design custom hosting solutions

    Custom apps, scripts and configurations for easy and secure access to all hosting services
    Full Personal Information Management suite with mobile synchronisation
    PHP, Ruby, Node.js and Python hosting with 1-click app install

  13. #13
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    glad to know its working for you

    Chris
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  14. #14
    Join Date
    Jun 2003
    Posts
    1,471
    My graphs are being generated 0 bytes. It is updating though.

    Probably related to what I did here? Can you post the RPM you found?

    Help!
    Installatron Plugin is a native DirectAdmin plugin that provides you and your customers an intuitive interface to install, manage, upgrade, and backup/restore a premier collection of the best applications on the web, all instantly at the click of a button.

    Also: cPanel-to-DA converterBulk Domains and Sub-domain PluginDA User Tool

  15. #15
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    all graphs?!?!
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  16. #16
    Join Date
    Jun 2003
    Posts
    1,471
    Installatron Plugin is a native DirectAdmin plugin that provides you and your customers an intuitive interface to install, manage, upgrade, and backup/restore a premier collection of the best applications on the web, all instantly at the click of a button.

    Also: cPanel-to-DA converterBulk Domains and Sub-domain PluginDA User Tool

  17. #17
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    I will put my bet on saying the problem relates to libpng, mainly due to the fact libpng produces the graph, and no graphs have been generated....
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  18. #18
    Join Date
    Jun 2003
    Posts
    1,471
    Yeah. What RPM are you using for libpng? I think the one I installed doesn't work
    Installatron Plugin is a native DirectAdmin plugin that provides you and your customers an intuitive interface to install, manage, upgrade, and backup/restore a premier collection of the best applications on the web, all instantly at the click of a button.

    Also: cPanel-to-DA converterBulk Domains and Sub-domain PluginDA User Tool

  19. #19
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    The problem *appears* to be another of the RH9 only problems. Give me 10... im trying to find the RPM's now

    Chris
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

  20. #20
    Join Date
    Jun 2003
    Location
    UK
    Posts
    2,326
    remove the rpm you installed in the other thread and try this one,

    ftp://speakeasy.rpmfind.net/linux/re....2-16.i386.rpm

    Keep us informed with how it goes

    Chris
    OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon!
    ProWebUK - Quality Web Services
    DirectAdmin Server Checklist

Page 1 of 4 123 ... LastLast

Similar Threads

  1. HOWTO: Install MRTG (FULLY AUTOMATED)
    By loopforever in forum How-To Guides
    Replies: 246
    Last Post: 06-03-2011, 12:22 AM
  2. Replies: 12
    Last Post: 04-15-2009, 11:43 PM
  3. HOWTO : MRTG for Mailscanner
    By interfasys in forum How-To Guides
    Replies: 9
    Last Post: 09-05-2008, 08:43 PM
  4. EASY HOWTO MAILSCANNER/Clamav/RazorDCC/ and more..
    By sohaib in forum How-To Guides
    Replies: 27
    Last Post: 11-06-2005, 11:04 AM
  5. HOWTO: Compile, configure and run MRTG
    By ProWebUK in forum How-To Guides
    Replies: 115
    Last Post: 08-21-2005, 07:18 AM

Posting Permissions

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