LinuxQuestions.org
Visit Jeremy's Blog.
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 02-28-2004, 02:12 AM   #1
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 32
What do I need for MRTG?


I downloaded and compiled zlib, libpng and gd as is written in the INSTALL file. Then compiled and installed mrtg in /usr/local/mrtg-2 without errors. I used cfgmaker to make the config file. After that I tried to run mrtg. WorkDir is pointed to /var/www/htdocs/mrtg, but there is nothing.
I learnt that besides those libraries I need something called Net-SNMP or ucd-snmp. What exactly do I need and what is it?
 
Old 02-28-2004, 11:40 AM   #2
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 32
Anyone? Please?..
 
Old 02-28-2004, 12:12 PM   #3
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
have you gone through the mrtg website?

OK here's a short summary. With mrtg you can plot a graph almost anything but only two items/graph. It is mainly used for plotting bandwitdh, cpu usage, etc etc. MRTG needs snmp agent ( but as I said you can plot almost anything if your script can supply alues to mrtg).

First you need to make a list of what you want to plot. For example, bandwidth from your proxy, or your linux machine cpu usage or your router's bandwitdh. To allow mrtg to extract values, the devices must be snmp enabled. If they are not then you can write a script to extract those values and feed it to mrtg.

Say for eg: you want to plot a graph of system resource usage of your linux box. You need to configure net-snmp first, set the community etc etc. Test if you can do a snmpwalk.

Now you should run your cfgmaker script and it will query the snmp agent and create a config file. But this cfgmaker makes a really basic file of bandwidth usage. You have to customise mrtg.cfg to plot other graphs like cpu, memory etc etc. You need to find out the MIBS from snmp agent .. For eg: cpu utilization would be in .1.3.6.1.4.1.2021.11.9.0 .


You need to read up on snmp first and then mrtg. It is pretty exhaustive.

hope this helps
 
Old 02-28-2004, 04:22 PM   #4
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Original Poster
Rep: Reputation: 32
Thank you very much! This post is a good start-point for me.
 
  


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
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM
can I use mrtg for this? ziggie216 Linux - Software 1 04-14-2004 01:34 PM
mrtg jcb_dreamvsat Linux - Networking 2 11-02-2003 11:59 AM
Mrtg Infynite Linux - Software 3 10-02-2003 01:49 AM
mrtg cristi1979 Linux - Networking 0 06-24-2003 03:21 PM

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

All times are GMT -5. The time now is 04:09 PM.

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