LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-06-2007, 07:17 AM   #1
GavB
Member
 
Registered: Nov 2006
Posts: 54

Rep: Reputation: 15
Where does yum install mrtg?


I have normally installed mrtg manually, but I suddenly realised that you can just use yum which saves a lot of time, just one thing, normally the path to mrtg has been /usr/local/mrtg-2/bin/mrtg but that doesnt seem to be the case after installing with yum.

It works ok if I run the following command:

env LANG=C mrtg /var/www/html/mrtg/core/mrtg.cfg

so I know it is installed ok, but when I put that into the crontab it doesn't run it so I assume I need the full path

(I would normally use this when installing manually:

*/5 * * * * root env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg

with the full path)

If someone could point me in the right direction that would be great, thanks.
 
Old 04-06-2007, 08:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
just ask rpm where it put stuff... "rpm -ql mrtg"
 
Old 04-09-2007, 11:53 AM   #3
axelfc
Member
 
Registered: Jan 2006
Distribution: ArchLinux
Posts: 174

Rep: Reputation: 34
First check here "/usr/bin/mrtg"

If by "manually" you mean you have compiled it from source the "rpm -ql mrtg" command won't show you anything. Instead try this
Code:
sudo updatedb
locate mrtg
I have a complete guide on How to install MRTG under Linux
 
Old 04-09-2007, 12:41 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
what about...
Quote:
after installing with yum
 
Old 04-09-2007, 01:45 PM   #5
axelfc
Member
 
Registered: Jan 2006
Distribution: ArchLinux
Posts: 174

Rep: Reputation: 34
Sorry acid_kewpie. My mistake. :/
 
Old 04-10-2007, 08:58 AM   #6
GavB
Member
 
Registered: Nov 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks for your replies,

I got it working eventually using this:

*/5 * * * * root env LANG=C mrtg /var/www/html/mrtg/core/mrtg.cfg

not sure why that didn't work first time, but I've just set it up on another server and it's not working on that, so I'll just play around with it.

Also another strange thing happened, after a while, I got a permission denied error when going to http://my-ip-address/mrtg/ but then I changed the directory (and cron) to mrtg2 and it works. Whenever I create a directory called mrtg it still shows as permission denied - anyone got any idea of what could be happening? I have no .htaccess files that would deny access.

Thanks
 
Old 04-11-2007, 05:11 AM   #7
axelfc
Member
 
Registered: Jan 2006
Distribution: ArchLinux
Posts: 174

Rep: Reputation: 34
Check if in /etc/httpd/conf.d/mrtg.cfg you have set allow for 127.0.0.1 (localhost) as well as all the ips you want to have access to your mrtg pages.

Mine is like this
Code:
Alias /mrtg /var/www/mrtg
<Location /mrtg>
   Order deny,allow
   Deny from all
   Allow from 127.0.0.1 10.0.0.0/8
</Location>
 
  


Reply

Tags
mrtg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install iptables for FC6? is there a yum install? mrjeffc Linux - Newbie 2 12-21-2006 10:13 PM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 12:48 PM
yum install ackerleytng Linux - Software 4 11-08-2005 04:21 AM
MRTG install issues mac_casey Mandriva 4 11-06-2005 05:23 PM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM


All times are GMT -5. The time now is 11:56 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration