LinuxQuestions.org
Help answer threads with 0 replies.
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 06-09-2005, 10:25 PM   #1
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Rep: Reputation: 15
MRTG Trouble


Im not sure if this is actualy a network problem or a software problem.. probably more of a software problem but im gonna bet you network buffs know exactly what to do !!!

Any way, I'm running CentOS 3.4 and I have been trying to install MRTG. I have been really stuck on the installation, I'm really not sure how to do it. If anyone can help me go through a very detailed steb by step process of installing and configuring MRTG that would be great. Thanks alot in advance,
 
Old 06-10-2005, 03:01 PM   #2
Sharaz
Member
 
Registered: Jun 2005
Location: Dallas, TX
Distribution: Fedora 11,12, RedHat4,6, CentOS4,5, FreeBSD7,8
Posts: 70

Rep: Reputation: 16
installation shouldnt be a problem. for a system that is already properly configured, its just a simple

tar zxvf mrtg.tar.gx
./configure
make
make install

after that, you cd into your mrtg dir (which is usually /usr/local/mrtg-2/bin

and give a command to make a config file. i keep the command in a little text file, and i just edit the device name each time and run it, nice and easy.

(this will all be one line of command, no carriage returns unless you add in slashes)

perl cfgmaker COMMUNITY@HOSTNAME.DOMAINNAME --global "Options[_]: bits" --global "RunAsDaemon: yes" --global "ImageDir: /var/www/html/mrtg/images" --global "HtmlDir: /var/www/html/mrtg/CITY/HOSTNAME" --global "LogDir:/var/www/html/mrtg/CITY/HOSNAME" --output HOSTNAME.cfg


which part of the install is not working?

Last edited by Sharaz; 06-10-2005 at 03:03 PM.
 
Old 06-10-2005, 10:18 PM   #3
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
I definatly have made some progress but it still doesnt seem to work.... perhaps you could assist even more?

I have done the make and make install and so on and ive run this command

perl cfgmaker public@myip --global "Options[_]: bits" --global "RunAsDaemon: yes" --global "ImageDir: /home/username/public_html/mrtg/images" --global "HtmlDir: /home/username/public_html/mrtg/report" --global "LogDir: /home/username/public_html/mrtg/logs" --output 1hhk.cfg
 
Old 06-10-2005, 10:20 PM   #4
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
It doesnt seem to run in the correct place....
 
Old 06-11-2005, 10:25 AM   #5
Sharaz
Member
 
Registered: Jun 2005
Location: Dallas, TX
Distribution: Fedora 11,12, RedHat4,6, CentOS4,5, FreeBSD7,8
Posts: 70

Rep: Reputation: 16
well, lets start from the beginning. what all happened during install? any strange messages about things that it wants being missing?
 
Old 06-12-2005, 12:33 AM   #6
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
Nope. As far as I can tell the install was successful and the only thing wrong is that... my configuration or sumthin is bad or inccorect. What would be excelent is if some 1 could help me do this personaly ...

Thank in advance again.
 
Old 06-12-2005, 07:18 AM   #7
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
Originally posted by Randvegeta
It doesnt seem to run in the correct place....
What does that mean?? Do you get an error message? Any output at all?
 
Old 06-12-2005, 10:13 AM   #8
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
No, otherwise i wud have stated it.
 
Old 06-12-2005, 10:31 AM   #9
Sharaz
Member
 
Registered: Jun 2005
Location: Dallas, TX
Distribution: Fedora 11,12, RedHat4,6, CentOS4,5, FreeBSD7,8
Posts: 70

Rep: Reputation: 16
Quote:
Originally posted by Randvegeta
Nope. As far as I can tell the install was successful and the only thing wrong is that... my configuration or sumthin is bad or inccorect. What would be excelent is if some 1 could help me do this personaly ...

Thank in advance again.
well, mrtg is quite verbose in telling you whats wrong during install. what did it say is wrong?
 
Old 06-12-2005, 12:01 PM   #10
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
Ok i dont mean to be rude, but if it had an output, i wud tell you. Ok after running that command it just shows me the html on the screen and not where i told it to write. there are no error messages or any message of any type.
 
Old 06-12-2005, 12:05 PM   #11
Sharaz
Member
 
Registered: Jun 2005
Location: Dallas, TX
Distribution: Fedora 11,12, RedHat4,6, CentOS4,5, FreeBSD7,8
Posts: 70

Rep: Reputation: 16
well we dont mean to be rude either, but unless you tell us exactly what you did, command by command, there is no way we can possibly guess what you need to do to correct your problem.

so, please give us a step by step of exactly what you did to set it up and configure your device script.
 
Old 06-13-2005, 08:04 AM   #12
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
This is exactly what I did.

Download the MRTG.tar.gz

extract it and used the command

./configure
./make
./make install


then i did this

cd /bin

perl cfgmaker public@myip --global "Options[_]: bits" --global "RunAsDaemon: yes" --global "ImageDir: /home/username/public_html/mrtg/images" --global "HtmlDir: /home/username/public_html/mrtg/report" --global "LogDir: /home/username/public_html/mrtg/logs" --output 1hhk.cfg

then it showed a bunch of html which i presuem was the output it was supposed to create but it didnt save to where i told it too.
 
Old 06-13-2005, 08:28 AM   #13
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Quote:
Originally posted by Randvegeta

then i did this

cd /bin

perl cfgmaker public@myip --global "Options[_]: bits" --global "RunAsDaemon: yes" --global "ImageDir: /home/username/public_html/mrtg/images" --global "HtmlDir: /home/username/public_html/mrtg/report" --global "LogDir: /home/username/public_html/mrtg/logs" --output 1hhk.cfg

then it showed a bunch of html which i presuem was the output it was supposed to create but it didnt save to where i told it too.
I asked you earlier if you got any output at all. To which you replied "no". A bunch of html is not no output at all. Post the output. Also check if the file /bin/1hhk.cfg exists and contains any data.
 
Old 06-13-2005, 08:38 AM   #14
Sharaz
Member
 
Registered: Jun 2005
Location: Dallas, TX
Distribution: Fedora 11,12, RedHat4,6, CentOS4,5, FreeBSD7,8
Posts: 70

Rep: Reputation: 16
its not html output, its an snmpget. and exactly what it says is of the utmost importance.
 
Old 06-13-2005, 09:25 AM   #15
Randvegeta
Member
 
Registered: Jun 2003
Location: Hong Kong
Distribution: Mandrake 9.1
Posts: 72

Original Poster
Rep: Reputation: 15
Pardon? I said it had HTML...l said it had no error messages, at least thats what I meant.. sorry if i was unclear.

there is no 1hhk.cfg file
 
  


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
Mrtg ilnli Linux - General 1 01-08-2005 03:50 PM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM
mrtg jcb_dreamvsat Linux - Networking 2 11-02-2003 11:59 AM
Mrtg jcb_dreamvsat Linux - Software 3 07-27-2003 03:32 AM
mrtg Pranesh Linux - Newbie 0 07-09-2003 08:34 AM

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

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