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 05-18-2006, 08:58 PM   #1
mr_dizzle
Newbie
 
Registered: Oct 2003
Posts: 27

Rep: Reputation: 15
mrtg on rhel 4


i have an mrtg rpm that installs fine on rhel 3. i can't find an rpm for rhel 4 so i'm trying to get the rpm i have to work:


rpm -Uvh mrtg-2.10.5-1.0.rhel3.ct.i386.rpm

[root@linux11844 local]# rpm -Uvh mrtg-2.10.5-1.0.rhel3.ct.i386.rpm
error: Failed dependencies:
libgd.so.1.8 is needed by mrtg-2.10.5-1.0.rhel3.ct.i386


this box has gd 2

/usr/lib/libgd.so
/usr/lib/libgd.so.2
/usr/lib/libgd.so.2.0.0

so i thought i could try symlinking:


[root@linux11844 local]# rpm -Uvh mrtg-2.10.5-1.0.rhel3.ct.i386.rpm
error: Failed dependencies:
libgd.so.1.8 is needed by mrtg-2.10.5-1.0.rhel3.ct.i386

cd /usr/lib

ll

lrwxrwxrwx 1 root root 14 Nov 13 2005 libgd.so -> libgd.so.2.0.0
lrwxrwxrwx 1 root root 14 Nov 13 2005 libgd.so.2 -> libgd.so.2.0.0
-rwxr-xr-x 1 root root 229680 Nov 3 2004 libgd.so.2.0.0


ln -s libgd.so.2.0.0 libgd.so.1.8

ll

lrwxrwxrwx 1 root root 14 May 16 00:58 libgd.so.1.8 -> libgd.so.2.0.0



i still get the same errors. anyone have an mrtg rpm for rhel 4 or know how i can try to get this one working?

thanks,
 
Old 05-18-2006, 09:12 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
did you try dag?
http://dag.wieers.com/packages/mrtg/
mrtg-2.12.1-1.2.el4.test.i386.rpm Sun 27 Nov 2005 1037 kB Red Hat EL 4 - i386
mrtg-2.12.1-1.2.el4.test.x86_64.rpm Sun 27 Nov 2005 1046 kB Red Hat EL 4 - x86_64
 
Old 05-18-2006, 09:28 PM   #3
mr_dizzle
Newbie
 
Registered: Oct 2003
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bosewicht
did you try dag?
http://dag.wieers.com/packages/mrtg/
mrtg-2.12.1-1.2.el4.test.i386.rpm Sun 27 Nov 2005 1037 kB Red Hat EL 4 - i386
mrtg-2.12.1-1.2.el4.test.x86_64.rpm Sun 27 Nov 2005 1046 kB Red Hat EL 4 - x86_64
hmmmm....no i haven't.
i tried up2date mrtg, but there is too much configuration involved with that.

i'll give this rpm a shot and let you know how it goes.

thanks,
 
Old 05-18-2006, 09:53 PM   #4
mr_dizzle
Newbie
 
Registered: Oct 2003
Posts: 27

Original Poster
Rep: Reputation: 15
still some issues. here is what i did:

rpm -Uvh mrtg-2.12.1-1.2.el4.test.i386.rpm

rm mrtg-2.12.1-1.2.el4.test.i386.rpm

vi /etc/httpd/conf.d/mrtg.conf

i changed the alias line so it now looks like this:

# This configuration file maps the mrtg output (generated daily)
# into the URL space. By default these results are only accessible
# from the local host.
#
Alias /mrtg /usr/local/apache/sites/mrtg

<Location /mrtg>
Order deny,allow
# Deny from all
# Allow from localhost localhost.localdomain
Deny from none
Allow from all
# Allow from .example.com
</Location>


next i did this:

vi /etc/mrtg/mrtg.cfg

and changed the working directory so that it now reads:



######################################################################
# Multi Router Traffic Grapher -- Example Configuration File
######################################################################
# This file is for use with mrtg-2.0
#
# Note:
#
# * Keywords must start at the begin of a line.
#
# * Lines which follow a keyword line which do start
# with a blank are appended to the keyword line
#
# * Empty Lines are ignored
#
# * Lines starting with a # sign are comments.

# Where should the logfiles, and webpages be created?

# Minimal mrtg.cfg
#--------------------

WorkDir: /usr/local/apache/sites/mrtg
#Target[r1]: 2ublic@myrouter.somplace.edu
#MaxBytes[r1]: 1250000
#Title[r1]: Traffic Analysis
#PageTop[r1]: <H1>Stats for our Ethernet</H1>


i know this is a problem already. i looked at mrtg.cfg on one of my rhel 3 boxes and there is tons of settings in the file.

Do you think I can copy mrtg.cfg from my rhel 3 box and use it here?

then i did this:

mv /var/www/mrtg /usr/local/apache/sites

vi /etc/sysconfig/i18n

and changed it to:

#LANG="en_US.UTF-8"
LANG="en_US"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

i restarted apache

/etc/init.d/mrtg start

[root@linux11844 conf.d]# /etc/init.d/mrtg start
-bash: /etc/init.d/mrtg: No such file or directory


besides not being able to get mrtg started, i know that mrtg.cfg file is going to cause problems as well.

when i bring up http://hostname/mrtg it just displays the default mrtg page.
 
Old 05-19-2006, 09:45 AM   #5
mr_dizzle
Newbie
 
Registered: Oct 2003
Posts: 27

Original Poster
Rep: Reputation: 15
anyone able to get mrtg working on rhel 4 using rpm or up2date?

thanks
 
  


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
compare RHEL 4.1 and RHEL 4.3 g_deepakala Red Hat 7 02-21-2010 09:51 AM
Upgrade RHEL 3 AS to RHEL 4 AS louisb Linux - Enterprise 8 06-04-2009 02:57 PM
Is CentOS RHEL or RHEL Server? mikes63737 Linux - Distributions 1 02-28-2006 04:35 PM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM
Mrtg Infynite Linux - Software 3 10-02-2003 01:49 AM

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

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