LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-29-2011, 04:04 PM   #1
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 242

Rep: Reputation: 1
Question Tell me more about MRTG


I have installed MRTG on my Linux 5.5 system. then i started copying data from the machine when MRTG is installed to another machine. I could see some changes in graphs.

But can't understand what does that mean?

Moreover how to see load on the system where MRTG is installed by copying files to that machine or by copying files from that machine.

Then again how do we add Router address in cfg maker command?

Please Guide me!
 
Old 08-29-2011, 04:13 PM   #2
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 242

Original Poster
Rep: Reputation: 1
Beside monitoring network bandwidth, what else we can do with MRTG?
 
Old 08-29-2011, 04:33 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by manalisharmabe View Post
I have installed MRTG on my Linux 5.5 system. then i started copying data from the machine when MRTG is installed to another machine. I could see some changes in graphs.

But can't understand what does that mean? Moreover how to see load on the system where MRTG is installed by copying files to that machine or by copying files from that machine. Then again how do we add Router address in cfg maker command?
Please Guide me!
...and....
Quote:
Originally Posted by manalisharmabe
Beside monitoring network bandwidth, what else we can do with MRTG?
Again, you need to ask a good question, if you want any sort of good answer. "Linux 5.5"?? What distro? 32 or 64 bit? And you say you copied data, and see "some changes in graphs"....great....WHAT graphs? What are you monitoring? How? We can't (and won't) guess.

If you're using MRTG to monitor a switch/network port, then you will OBVIOUSLY see an increase when you copy data, since you'll be pushing MORE THROUGH THE LINK. And since YOU configured MRTG, you MUST KNOW what you configured it to do....

And if you want to know what MRTG can do, I will AGAIN tell you to read the documentation and their web site, which will TELL YOU THIS.
 
Old 09-13-2011, 05:41 AM   #4
spatieman
Member
 
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 73

Rep: Reputation: 21
reading MAN pages.
Reading DOC files
Reading websites.
etc..

but ok, i am not a mrtg guru, but i can provide a litle help and basic config.
consider this, below is working here on a openBSD 4.9 box (with) routers2cgi script, but can be bypassed.
Be aware that MRTG is a SNMP puller, so it pulls default ONLY SNMP data from a device.
so make sure you ENABLE the SNMP fucktion.


1: make sure you installed it over your nix distro system.
2: check all flags.
3: check http config, some apache configs refuse to pull cgi scripts in chroot mode. (use a hello.pl for test in cgi-bin)
4: maning cfgmaker xD
4a: or, cfgmaker 192.168.1.1 --output=/etc/mrtg.tmp (this pulls snmp config from 192.168.1.1 and write in to /etc/mrtg.tmp where you can edit it,and copying it when done to mrtg.cfg)

4b: or if you get the clue of it, editing it all by hand)

5: 1st at all MRTG does NOT make stats at its own,.you need to crontab over a spec time.
example of my pulling mrtg cfg.
crontab entry: 0-59/2 * * * * /usr/local/bin/mrtg /etc/mrtg/mrtg.cfg --logging /var/log/mrtg/mrtg.log
This pulls every 2 minutes snmp data from device.
not recomended on SLOW machines xD

mrtg.cfg (BASIC pull of router SNMP) (this pulls my ADLS snmp data from my draytek rig)
WorkDir: /var/www/htdocs/mrtg
Options[_]: growright,bits
EnableIPv6: no

#remove the below 2 #'s if you know what you are doing !!
#PathAdd: /usr/local/bin
#LogFormat: rrdtool

#----------------------------------------------------------------------
Target[DrayTek_4]: 4ublic@192.168.1.1:
SetEnv[DrayTek_4]: MRTG_INT_IP="" MRTG_INT_DESCR="DrayTek ADSL-Line"
MaxBytes[DrayTek_4]: 10000000
Title[DrayTek_4]: DrayTek Vigor 2600i Traffic Analysis for ADSL Line
PageTop[DrayTek_4]: <h1>DrayTek Vigor 2600i Traffic Analysis for ADSL Line</h1>
<div id="sysdetails">
<table>
<tr><td>System:</td><td> in </td></tr>
<tr><td>Maintainer:</td><td>info@draytek.com.tw</td></tr>
<tr><td>Description:</td><td>ADSL </td></tr>
<tr><td>ifType:</td><td>Asymetric Digitial Subscriber Loop (ADSL) (94)</td></tr>
<tr><td>ifName:</td><td></td></tr>
<tr><td>Max Speed:</td><td>10 MBytes/s</td></tr>
</table>
</div>
#----------------------------------------------------------------------

when done saving.
mrtg /etc/mrtg.cfg --check
This checks for errors (basic errors it is)

Than.
indexmaker /etc/mrtg.cfg --output=/var/path to your htdocs/mrtg/index.html
enable the CRON entry,and wait a few minutes (if not done already.)
fire up browser ,type http://localhost/mrtg/index.html

see your ADSL line speed (as example)

well, uhm,ok, thats it..

EXTENED versions..
you can hack in it, by using external program.
Again, READ 1st 3 line in message.
i extended my mrtg with routers2cgi
using statgrab.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can MRTG do this!! roopunix Linux - Networking 0 12-14-2005 11:07 PM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM
looking for help on MRTG AZIMBD03 Linux - Networking 5 04-08-2004 01:36 PM
MRTG - Where do I get it? thalerz Linux - Software 1 11-25-2003 03:45 PM
mrtg Pranesh Linux - Newbie 0 07-09-2003 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration