Welcome,
Guest
. Please
login
or
register
.
03-20-2010, 17:00:04
TorrentFlux Home
|
TorrentFlux Hosting
TorrentFlux Forums
Code Hacks and Tools
TorrentFlux 2.1 Hacks
MRTG-Graph-hack
« previous
next »
Pages:
1
2
[
3
]
4
5
Author
Topic: MRTG-Graph-hack (Read 17828 times)
b4rt
Hero Member
Offline
TF Base: Linux 2.x
Posts: 543
Re: MRTG-Graph-hack
«
Reply #30 on:
05-22-2006, 14:09:37 »
Quote from: xoriath on 05-22-2006, 13:57:31
Ok.
Now there are pictures forming in the mrtg girectory, but they won't show in mrtg.php
hmm strange. are there ".inc" files in the mrtg-dir ? (the mrtg-dir in your docroot, so /var/www/mrtg on standard-config)
(mrtg.php looks for the .inc-files and parses em.)
Logged
torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
xoriath
Newbie
Offline
Posts: 17
Re: MRTG-Graph-hack
«
Reply #31 on:
05-22-2006, 14:37:55 »
Quote from: b4rt on 05-22-2006, 14:09:37
Quote from: xoriath on 05-22-2006, 13:57:31
Ok.
Now there are pictures forming in the mrtg girectory, but they won't show in mrtg.php
hmm strange. are there ".inc" files in the mrtg-dir ? (the mrtg-dir in your docroot, so /var/www/mrtg on standard-config)
(mrtg.php looks for the .inc-files and parses em.)
I got traffic.inc and it looks ok. The logs are logging the traffic, the only thing is the pictures that doesn't show up.
The traffic.inc lies with another instance of mrtg, so I made a dirty one, and copied it into the mrtg for tf, and now it shows empty frames without any graph (in the pictures, it says just what function it has)
Tried to redirect it all to the other mrtg, but when it is pased, the images isn't found
Logged
b4rt
Hero Member
Offline
TF Base: Linux 2.x
Posts: 543
Re: MRTG-Graph-hack
«
Reply #32 on:
05-22-2006, 14:43:35 »
if you alter the format of the inc-files (if you change or do not use the "dont modify" lines) in my default-mrtg-conf mrtg.php wont work as it relies on some of em.
one good thing may be to delete the content of your mrtg-dir and let mrtg recreate things.
also i always delete mrtgs .ok file in the config-dir after doing changes to the config-file(s)
Logged
torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
xoriath
Newbie
Offline
Posts: 17
Re: MRTG-Graph-hack
«
Reply #33 on:
05-22-2006, 14:47:02 »
Quote from: b4rt on 05-22-2006, 14:43:35
if you alter the format of the inc-files (if you change or do not use the "dont modify" lines) in my default-mrtg-conf mrtg.php wont work as it relies on some of em.
one good thing may be to delete the content of your mrtg-dir and let mrtg recreate things.
also i always delete mrtgs .ok file in the config-dir after doing changes to the config-file(s)
Ok, i got it!
MRTG doesn't create the inc files!!
Logged
b4rt
Hero Member
Offline
TF Base: Linux 2.x
Posts: 543
Re: MRTG-Graph-hack
«
Reply #34 on:
05-22-2006, 14:59:42 »
Quote from: xoriath on 05-22-2006, 14:47:02
Ok, i got it!
MRTG doesn't create the inc files!!
then please ensure you didnt alter/remove these lines in
mrtg.flux.cfg
Code:
# _dont_ change this when using with my mrtg.php
PageTop[_]: _CONTENT_BEGIN_
PageFoot[_]: _CONTENT_END_
Extension[_]: inc
also ensure user running the cron-job has write-access to the mrtg-dir where the .inc-files and pngs belong. (if you did your interactive tests as root you might have a permission-problem here)
regards,
b4rt
Logged
torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
xoriath
Newbie
Offline
Posts: 17
Re: MRTG-Graph-hack
«
Reply #35 on:
05-22-2006, 15:29:22 »
Quote from: b4rt on 05-22-2006, 14:59:42
Quote from: xoriath on 05-22-2006, 14:47:02
Ok, i got it!
MRTG doesn't create the inc files!!
then please ensure you didnt alter/remove these lines in
mrtg.flux.cfg
Code:
# _dont_ change this when using with my mrtg.php
PageTop[_]: _CONTENT_BEGIN_
PageFoot[_]: _CONTENT_END_
Extension[_]: inc
also ensure user running the cron-job has write-access to the mrtg-dir where the .inc-files and pngs belong. (if you did your interactive tests as root you might have a permission-problem here)
regards,
b4rt
The mrtg.flux.cfg.file looks correct... When I run flux-mrtg, the pngs are created, but there is still no inc file
chmod 777 on mrtg..
«
Last Edit: 05-22-2006, 15:35:13 by xoriath
»
Logged
b4rt
Hero Member
Offline
TF Base: Linux 2.x
Posts: 543
Re: MRTG-Graph-hack
«
Reply #36 on:
05-22-2006, 15:43:00 »
Quote from: xoriath on 05-22-2006, 15:29:22
The mrtg.flux.cfg.file looks correct... When I run flux-mrtg, the pngs are created, but there is still no inc file
chmod 777 on mrtg..
please ensure the following lines in your
mrtg.flux.cfg
match. it must be the same directory and mrtg requires that both are set.
Code:
# CHANGEME
HtmlDir: /var/www/mrtg/
# CHANGEME
Imagedir: /var/www/mrtg/
regards,
b4rt
Logged
torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
xoriath
Newbie
Offline
Posts: 17
Re: MRTG-Graph-hack
«
Reply #37 on:
05-22-2006, 16:19:03 »
Ok.
Now I got a picture frame, which is empty and only says the function (like day, week under traffic)
«
Last Edit: 05-22-2006, 17:48:26 by xoriath
»
Logged
wobbles
Newbie
Offline
Posts: 37
Re: MRTG-Graph-hack
«
Reply #38 on:
06-02-2006, 22:50:11 »
just enabled this on my tf sever, sweet mod and other graphing scripts! :>
Logged
puttyman
Jr. Member
Offline
Posts: 59
Re: MRTG-Graph-hack
«
Reply #39 on:
06-16-2006, 03:43:56 »
I use TorrentFlux 2.1-b4rt-85 .
I get the following after install . No graph produced
My TF path is /www/var/html
I use debian sarge
My mrtg works fine in /www/var/mrtg ( installed with apt-get)
How should i edit those config files to make it work in TorrentFlux 2.1-b4rt-85 ?
Logged
b4rt
Hero Member
Offline
TF Base: Linux 2.x
Posts: 543
Re: MRTG-Graph-hack
«
Reply #40 on:
06-16-2006, 07:43:09 »
Quote from: puttyman on 06-16-2006, 03:43:56
I use TorrentFlux 2.1-b4rt-85 .
I get the following after install . No graph produced
My TF path is /www/var/html
I use debian sarge
My mrtg works fine in /www/var/mrtg ( installed with apt-get)
How should i edit those config files to make it work in TorrentFlux 2.1-b4rt-85 ?
as i wrote in the setup-guide
what did you do yet ? any errors ?
regards,
b4rt
Logged
torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
puttyman
Jr. Member
Offline
Posts: 59
Re: MRTG-Graph-hack
«
Reply #41 on:
06-16-2006, 09:20:23 »
For /etc/mrtg/mrtg.flux.cfg
I editted to.
# CHANGEME
Logdir: /usr/local/torrent/
# CHANGEME
HtmlDir: /var/www/html/mrtg/
# CHANGEME
Imagedir: /var/www/html/mrtg/
For /etc/mrtg/flux-mrtg.conf
# flux-path (aka "Path" in flux-settings)
# CHANGEME
FLUXPATH="/usr/local/torrent"
# path to mrtg-conf-file.
# wherever this is, ensure directory is writeable for the user running this
# script (-> user running mrtg) (mrtg creates a lockfile at its conf-file(s))
# CHANGEME
CONFFILE="/etc/mrtg/mrtg.flux.cfg"
# where is mrtg
# CHANGEME
BIN_MRTG="/usr/bin/mrtg"
..
Anything wrong in the editting ?
Logged
b4rt
Hero Member
Offline
TF Base: Linux 2.x
Posts: 543
Re: MRTG-Graph-hack
«
Reply #42 on:
06-16-2006, 11:25:57 »
Quote from: puttyman on 06-16-2006, 09:20:23
For /etc/mrtg/mrtg.flux.cfg
I editted to.
# CHANGEME
Logdir: /usr/local/torrent/
# CHANGEME
HtmlDir: /var/www/html/mrtg/
# CHANGEME
Imagedir: /var/www/html/mrtg/
For /etc/mrtg/flux-mrtg.conf
# flux-path (aka "Path" in flux-settings)
# CHANGEME
FLUXPATH="/usr/local/torrent"
# path to mrtg-conf-file.
# wherever this is, ensure directory is writeable for the user running this
# script (-> user running mrtg) (mrtg creates a lockfile at its conf-file(s))
# CHANGEME
CONFFILE="/etc/mrtg/mrtg.flux.cfg"
# where is mrtg
# CHANGEME
BIN_MRTG="/usr/bin/mrtg"
..
Anything wrong in the editting ?
one thing i see, logdir "should" be this:
Code:
# CHANGEME
Logdir: /usr/local/torrent/.mrtg/
pls just follow my guide step by step .. its pretty straight-forward.
i cant really help if you dont do that with a error-report like "it doesnt work"
you checked the dirs how i wrote in the guide ? any files there ?
any errors from mrtg ? anything ? ~
always check the permissions as i wrote it in the guide as this is maybe #1 source of problems with this setup.
regards,
b4rt
«
Last Edit: 06-16-2006, 11:27:29 by b4rt
»
Logged
torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
puttyman
Jr. Member
Offline
Posts: 59
Re: MRTG-Graph-hack
«
Reply #43 on:
06-16-2006, 15:39:57 »
well i setup everything as you wrote . I still get the image problem.
The scripts are creating the logs and images , i tried to view the image
http://xx.xx/html/mrtg/traffic-day.png
I get server internal error.
Apache log prints : [alert] [client xx.xxx.xx.xx] /var/www/html/mrtg/.htaccess: deny not allowed here
Logged
b4rt
Hero Member
Offline
TF Base: Linux 2.x
Posts: 543
Re: MRTG-Graph-hack
«
Reply #44 on:
06-16-2006, 16:19:15 »
Quote from: puttyman on 06-16-2006, 15:39:57
well i setup everything as you wrote . I still get the image problem.
The scripts are creating the logs and images , i tried to view the image
http://xx.xx/html/mrtg/traffic-day.png
I get server internal error.
Apache log prints : [alert] [client xx.xxx.xx.xx] /var/www/html/mrtg/.htaccess: deny not allowed here
this is a "apache-setup-problem" then. i put .htaccess files in all subdirs of TF where direct access is not wanted. you could try to delete the file ".htaccess" in the mrtg dir and try again.
regards,
b4rt
Logged
torrentflux-b4rt svn-trunk
Linux 2.4.34.1, Apache 2.0.59, PHP 4.4.5, Perl 5.8.8, Python 2.5, MySQL 4.1.22
Pages:
1
2
[
3
]
4
5
« previous
next »
Jump to:
Please select a destination:
-----------------------------
TorrentFlux
-----------------------------
=> TorrentFlux News
=> TorrentFlux Search Engine Modules and Updates
=> Forum/Website Problems
-----------------------------
TorrentFlux Support
-----------------------------
=> Linux Installations Support
=> Windows Installations (Limited Support)
=> International Support
-----------------------------
Bugs, Fixes, and Feature Requests
-----------------------------
=> Linux Bugs
=> Windows Bugs
=> Feature Requests
-----------------------------
Code Hacks and Tools
-----------------------------
=> TorrentFlux Tools
=> TorrentFlux 2.3 Hacks
=> TorrentFlux 2.1 Hacks
=> TorrentFlux 2.0 Hacks
=> TorrentFlux 1.x Hacks
=> TorrentFlux Themes (skins)
-----------------------------
Off The Wall
-----------------------------
=> Off Topic Discussion
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.1
|
SMF © 2006, Simple Machines LLC