LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-06-2010, 06:34 AM   #1
hebblethwaite
LQ Newbie
 
Registered: Oct 2007
Posts: 6

Rep: Reputation: 0
MRTG - newbie getting started


Greetings friends,

I've had MRTG installed for a while but am only getting around to figuring out how it works. Need a little help finishing the job. Facts:
-router is at 192.168.1.1
-MRTG seems to be successfully installed on my Fedora Core 4 (I know, old school!) machine. [server]/r1.html does bring up the right page.
-mrtg.cfg looks like this (I started with a sample):

HtmlDir: /var/www/html/mrtg
ImageDir: /var/www/html/mrtg
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
RunAsDaemon: Yes
#Target[r1]: 2ublic@myrouter.somplace.edu
Target[r1]: 2ublic@192.168.1.1
MaxBytes[r1]: 1250000
Title[r1]: Traffic Analysis
PageTop[r1]: <H1>Edge Stats for HebbleNet Router</H1>

Problem is I can't figure out:
1. How to make it "update" automatically. It's stuck on November 11, 2009
2. Not sure how to make sure it's monitoring the WAN port or the LAN port on the router, which is a SonicWall TZ150.

Thanks in advance!
Kevin
 
Old 08-09-2010, 04:56 PM   #2
engtmk
LQ Newbie
 
Registered: Aug 2010
Location: Egypt
Distribution: Cetnos
Posts: 9

Rep: Reputation: 1
Quote:
1. How to make it "update" automatically. It's stuck on November 11, 2009
you have to check if there was a crontab on the machine to update the logfile (which contain the values polled from your snmp agent)

check this article here it should help you
http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html


Quote:
2. Not sure how to make sure it's monitoring the WAN port or the LAN port on the router, which is a SonicWall TZ150.
you can monitor any snmp-enabled devices.

engtmk
http://engtmk-techtip.blogspot.com
 
Old 08-11-2010, 07:35 AM   #3
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by hebblethwaite View Post
Greetings friends,

I've had MRTG installed for a while but am only getting around to figuring out how it works. Need a little help finishing the job. Facts:
-router is at 192.168.1.1
-MRTG seems to be successfully installed on my Fedora Core 4 (I know, old school!) machine. [server]/r1.html does bring up the right page.
-mrtg.cfg looks like this (I started with a sample):

HtmlDir: /var/www/html/mrtg
ImageDir: /var/www/html/mrtg
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
RunAsDaemon: Yes
#Target[r1]: 2ublic@myrouter.somplace.edu
Target[r1]: 2ublic@192.168.1.1
MaxBytes[r1]: 1250000
Title[r1]: Traffic Analysis
PageTop[r1]: <H1>Edge Stats for HebbleNet Router</H1>

Problem is I can't figure out:
1. How to make it "update" automatically. It's stuck on November 11, 2009
2. Not sure how to make sure it's monitoring the WAN port or the LAN port on the router, which is a SonicWall TZ150.

Thanks in advance!
Kevin

You should have a cron entry somewhere like
Code:
/etc/cron.d/mrtg
with contents such as:

Code:
*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
exact paths depends on your installation type.
regarding lan port or wan port..either must be snmp enabled and then you monitor using that ports ip.


from an rpm install you can find out where the config files are

Code:
[root@cxxx]# rpm -qc mrtg
/etc/cron.d/mrtg
/etc/httpd/conf.d/mrtg.conf
an example i have

Code:
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
Target[xxxx]: 2:starf1sh@localhost
MaxBytes[xxxx]: 1250000
Title[xxxx]: Traffic Analysis
Options[xxxx]: growright,bits
PageTop[xxxx]: <H1>Stats for xxxxxxx localhost</H1>
 
  


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
[SOLVED] apache newbie/mrtg newbie (newbie to everything) new2nagios Linux - Software 3 12-14-2009 09:05 AM
Linux Newbie Jump Started!? wingnut3140 Linux - Newbie 4 02-10-2007 06:23 AM
2 Newbie questions - pls help to get me started ks8 Linux - Newbie 18 04-01-2004 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:14 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