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. |
just ask rpm where it put stuff... "rpm -ql mrtg"
|
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 |
what about...
Quote:
|
Sorry acid_kewpie. My mistake. :/
|
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 |
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 |
All times are GMT -5. The time now is 12:50 PM. |