Best-Selling Hosting

Top Rated Providers

Editors Pick

Creating a Welcome message for SSH logins Published: Oct 31, 2003
  • Rating

    4/5

Easy install guide to using MRTG on Ensim 3.7 for RHEL & Fedora. An excellent tool for monitoring your servers total bandwidth usage, cpu, apache hits/sec and much more.

What is the Multi Router Traffic Grapher (MRTG)?

The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network-links. MRTG generates HTML pages containing graphical images which provide a LIVE visual representation of this traffic. Check http://www.ee.ethz.ch/stats/mrtg/ for an example. MRTG is based on Perl and C and works under UNIX and Windows NT.

Cheetaweb has made the following packages available for MRTG integration on Ensim 3.7 servers.

Downloadables:

Fedora Core 1
http://www.download.cheetaweb.com/fedora/1/mrtg/mrtg-2.10.5-1.0.rhfc1.ct.i386.rpm

RH Enterprise Linux 3
http://www.download.cheetaweb.com/redhat/EL3/mrtg/mrtg-2.10.5-1.0.rhel3.ct.i386.rpm

Installing MRTG

Step 1. Login to your server through SSH and su - to the root user.

Step 2. Download it to your server
wget filename - replace this with whichever version of Linux link you are running above.

Step 3. Install the RPM
rpm -Uvh mrtg-2.10.5*.rpm

Running the MRTG application

Step 1. Restart the webserver - usually
/etc/init.d/httpd restart

Step 2. You will need to start mrtg via
/etc/init.d/mrtg start

Step 3. To set MRTG to autostart run: 
chkconfig mrtg on

Suggestions

By default the config only allows access from localhost - i.e. you can links http://localhost/mrtg/ from the server itself and it will work.

If you want to change this, you edit the /etc/httpd/conf.d/mrtg file - i.e.
nano /etc/httpd/conf.d/mrtg

and change the Allow line to include your one IP address; for example, if you want it to allow anyone across the world to access it (note that has information disclosure implications), you can set it to:

Deny from none
Allow from all

Common Errors

Errors on starting the MRTG monitor, what do I do?
Restart MRTG 3 times - trust me this will fix it!
/etc/init.d/mrtg restart - wait a few minutes before repeating each one.

I'm getting locales settings errors?
Edit the file: pico /etc/sysconfig/i18n

#LANG="en_US.UTF-8"
LANG="C /usr/bin/mrtg"

should be

LANG="en_US"

Save the changes Ctrl + X then Y

  • Rating

    0/5

Related Articles

Comments (16)

  • Gravatar - Mark Janssen
    Mark Janssen 16:39, November 30, 2003
    If you create a ssh banner file, this will be displayed before people log in, instead of after (with the motd version).

    Specify 'Banner /etc/banner' in sshd_config
  • Gravatar - jad madi
    jad madi 15:47, May 20, 2004
    edit /etc/profile
    at the end add
    uptime
    date
    so uptime status and date will appear.
  • Gravatar - JLChafardet
    JLChafardet 19:54, November 2, 2004
    Mark Janssen <br />
    If you create a ssh banner file, this will be displayed before people log in, instead of after (with the motd version). Specify 'Banner /etc/banner' in sshd_config<br />
    <br />
    it didnt worked on my machine.
  • Gravatar - Skal
    Skal 00:32, June 9, 2005
    I had to reboot to make /etc/banner work.
  • Gravatar - Walter
    Walter 03:13, June 13, 2005
    <snip><br />
    Specify 'Banner /etc/banner' in sshd_config<br />
    <end snip><br />
    Added to sshd_config, restarted<br />
    sshd.<br />
    a) If I connect from a Windows box via putty - I do NOT get the banner, BUT<br />
    b) use "ssh xxxx" from another Linux box (or the same box), I get the Banner -- so might depend on how you are connecting.<br />
    <br />
    Hope this helps
  • Gravatar - BMay
    BMay 19:23, July 28, 2005
    I did get the banner with puTTY from a Windoze box.
  • Gravatar - Viza
    Viza 06:35, September 29, 2005
    you have to restart sshd before it will work
  • Gravatar - Scott
    Scott 22:16, October 19, 2005
    how do i take off the motd?
  • Gravatar - Matt
    Matt 04:30, November 10, 2005
    To remove the motd, just delete the information in /etc/motd
  • Gravatar - Wes
    Wes 15:54, November 10, 2005
    Scott,<br />
    Just edit the file as you did before and remove all the text you entered.
  • Gravatar - Linux GURU
    Linux GURU 16:55, November 13, 2005
    rm -rf /etc/motd <br />
    <br />
    :)
  • Gravatar - Dave
    Dave 06:22, January 9, 2007
    Worked great, didn't have to reboot my server.
  • Gravatar - Steve
    Steve 17:58, August 14, 2007
    So if I want a MOTD with the users name, login, and time/date.<br />
    <br />
    How would i start?<br />
    <br />
    IE Wecome <user> to mysever.<br />
    Date is:<br />
    <br />
    Your webspace is mydomain/~username<br />
    <br />
    Any webpages you can point me too?
  • Gravatar - Maarten
    Maarten 11:08, May 19, 2008
    You don't have to reboot your machine, sending a HUP-signal to the sshd process will make the sshd reread its config file and apply it.<br />
    <br />
    Thus :<br />
    1.) Create the banner file<br />
    2.) Insert the Banner-line into the sshd config file<br />
    3.) ps -ef | grep sshd<br />
    4.) kill -HUP <<sshd PID>><br />
    <br />
    It should work from then on.
  • Gravatar - Neriencorce
    Neriencorce 19:32, May 24, 2011
    <a href=http://es5.com><img>http://www.seo.com/wp-content/themes/seo-v2/images/banner_search_guy_left.png</img></a>

    Hey Everybody <a href=http://blackhatworld.com><img>http://www.es5.com/images/blackhat.gif</img></a>

    I'm hunting for a <a href=http://www.es5.com/xrumer-hrefer/><b> Whitehat</b></a> tools to escalate my rankings. I'd acknowledge virtually any kind of Search Optimization and Web Site exposure

    If you know an individual adequate to guide targeted web traffic and with <a href=http://www.es5.com><b>Blackhat</a></b> SEO. I want to study to promote and exploit for online websites & products.
  • Gravatar - Abigail Simpson
    Abigail Simpson 20:06, June 12, 2011
    <a href=http://100percentwinners.akb007.com>100% Winning Sports Betting Software</a>
    <a href=http://mrusa99.com>Bodybuilding Blog</a>
    <a href=http://tinyurl.com/634hl98>Bodybuilding and Fitness Blog</a>
    <a href=http://chicken.akb007.com>Build a Chicken Coop</a>
    <a href=http://chicken-coop-plans.akb007.com>Build a Chicken Coop Plans</a>
    <a href=http://local-mobile-monopoly.mrusa99.com>Cell Phone Marketing</a>
    <a href=http://chicken-coop.akb007.com>Chicken Coop</a>
    <a href=http://chicken-coop-plans.mrusa99.com>Chicken Coop Plans</a>
    <a href=http://akb007.com/invisalign/index.html>Clear Braces Sydney </a>
    <a href=http://commission-crusher.akb007.com>Commission Crusher - Triple Threat Software</a>
    <a href=http://concentratedviolinlessons.akb007.com>Concentrated Violin Lessons</a>
    <a href=http://www.sydneycitydental.rediweb.com.au>Cosmetic Dentist Sydney</a>
    <a href=http://dogtraining.akb007.com>DIY Dog Training</a>
    <a href=http://dog-training.akb007.com>Dog Training</a>
    <a href=http://dog-training-made-easy.akb007.com>Dog Training Made Easy</a>
    <a href=http://tinyurl.com/44nmuuy>Email Marketing and SEO Specialist</a>
    <a href=http://xtremetrafficarbitrage.akb007.com>Extreme Traffic Arbitrage</a>
    <a href=http://forex-fap.akb007.com>Forex FAP Turbo Robot</a>
    <a href=http://tinyurl.com/453e9d2>Gourmet Food</a>
    <a href=http://lookwhosblogging.com>Gourmet Food Blog</a>
    <a href=http://guitarscalemastery.akb007.com>Guitar Scale Mastery</a>
    <a href=http://how-to-win-the-lottery.mrusa99.com>How to Win the Lottery</a>
    <a href=http://invisalign.akb007.com>Invisalign</a>
    <a href=http://www.clearbracessydney.com>Invisalign Sydney</a>
    <a href=http://akb007.com/invisalign>Invisalign Teen</a>
    <a href=http://invisalign-sydney.akb007.com>Invisalign Teen Sydney</a>
    <a href=http://jamorama.mrusa99.com>Jamorama</a>
    <a href=http://jamorama.akb007.com>Jamorama - Learn to Play Guitar Online</a>
    <a href=http://silver-lotto.akb007.com>Ken Silver Lotto</a>
    <a href=http://silver-lotto.mrusa99.com>Ken Silver Lotto System</a>
    <a href=http://jamorama-reviews.akb007.com>Learn to Play Guitar Online</a>
    <a href=http://local-mobile-monopoly.akb007.com>Local Mobile Monopoly</a>
    <a href=http://lottoblackbook.akb007.com>Lotto Black Book</a>
    <a href=http://makingup.akb007.com>Magic of Making Up</a>
    <a href=http://magniwork.akb007.com>Magniwork</a>
    <a href=http://mowg.mrusa99.com>MOWG</a>
    <a href=http://mowg.akb007.com>MOWG = Mass Optimized Webpage Generation</a>
    <a href=http://jamorama-reviews.mrusa99.com>Play Guitar Online</a>
    <a href=http://pregnancy-miracle.akb007.com>Pregnancy Miracle</a>
    <a href=http://rocketpiano.akb007.com>Rocket Piano</a>
    <a href=http://satellitedirect.akb007.com>Satellite Direct - Watch TV Online for Free</a>
    <a href=http://akb007.com>SEO Specialist</a>
    <a href=http://seopressor.akb007.com>SEOPressor Premium Wordpress Plugin </a>
    <a href=http://ken-silver-lotto.akb007.com>Silver Lotto $10 Discount Offer</a>
    <a href=http://ken-silver-lotto.mrusa.com>Silver Lotto</a>
    <a href=http://silverlotto.akb007.com>Silver Lotto System</a>
    <a href=http://singorama.akb007.com>Singorama - Learn to Sing Like a Pro!</a>
    <a href=http://teds-woodworking.akb007.com>Ted's Woodworking</a>
    <a href=http://100percentwinners.akb007.com>Top Arbitrage Betting</a>
    <a href=http://truth-about-abs.akb007.com>Truth About Abs</a>
    <a href=http://how-to-win-the-lottery.akb007.com>Win the Lottery</a>
    <a href=http://how-to-win-the-lottery.mrusa99.com>Win the Lottery 9 Out of 10 Times</a> <a href=http://www.lookwhosblogging.com><img>http://www.lookwhosblogging.com/images/smile.gif</img></a>

Add Your Thoughts

WebHostGear.com is a hosting directory, not a web host.

Copyright © 1998-2010 WebHostGear.com