Toon posts:

perproxy stats

Pagina: 1
Acties:
  • 110 views sinds 30-01-2008
  • Reageer

Verwijderd

Topicstarter
M'n perproxy stats willen niet helemaal werken. Als ik ppstats run dan maakt die alleen een index file aan zonder de subpages. Ik heb echt al van alles geprobeerd, maar ik kom er niet uit.

BTW, ppstats draaid op een PowerBSD waar ik geen root acces heb dus ik kan niet al te veel uitvoeren.

Dit is een stuk uit m'n ppstats.ini
#--- Input Options -----------------------------------------------------------
# Logfile name format information. This script does not correctly support
# formats other than YYYYMMDD. The logs in this example are kept in a
# subdirector called "logrc5", which can be configured in the proxy's ini.
# This script does require that daily logfile rotation is enabled. Other
# rotation time periods are not yet supported. LogDir should end in a "/".
LogDir = "/www/htdocs/goesfont/proxy/"
LogPre = "pproxyrc5" # For rc5pkeyYYYYMMDD
LogSuf = "log" # For rc5pkeyYYYYMMDD.log

# The personal proxy can read compressed log files after they have been
# rotated. If you have this proxy option enabled and want to use ppstats,
# configure the following settings. The defaults are for UNIX gzip. Command
# that unzips the logfile to stdout without deleting the file is required.
#ProcessZipLogs = 0 # Ignore zipped log files.
ProcessZipLogs = 1 # Unzip and process all log files.
LogZipSuf = "log.gz" # For rc5pkeyYYYYMMDD.log.gz
LogTmpSuf = "log.tmp" # For rc5pkeyYYYYMMDD.log.tmp
LogDecompressor = "gzip -d -c" # Command line zip decompressor.

# Maximum number of days to read log files. A value of zero means
# read all available log files without limit. A value of 365 would mean
# only read back blocks done in the last year and ignore anything older.
MaxDays = 365


#--- Output Options ----------------------------------------------------------
# Full path to output file location. This should end in a "/".
HtmlDir = "/www/htdocs/goesfont/proxy/stats/output"

# Full URL of output web file location. This should end in a "/".
HtmlRoot = "http://www.webz4all.com/proxy/stats/"

# Realitive path to icon folder from htmldir and htmlroot. Default should work
# fine for most cases. This should end in a "/". If you haven't copied
# this folder from the zip distribution to your htmldir now is a good time.
IconDir = "icons/"

# HTML output filenames. You should configure IIS to use index.html as a
# default document, or rename the index.html's to default.htm
htmlteam = "index.html"
htmlexec = "exec.html"
htmlmail = "byemail.html"
htmlhost = "byhost.html"
htmlos = "byos.html"
htmlcpu = "bycpu.html"
htmlver = "byver.html"
htmlfull = "byfull.html"
htmldomain = "bydomain.html"
htmlhour = "byhour.html"
htmldate = "bydate.html"
htmlweek = "byweek.html"
htmlmonth = "bymonth.html"
htmlyear = "byyear.html"
htmldayofweek = "bydaywk.html"
htmlindvemail = "index.html"
htmlemailhist = "emailhist.html"
htmlhostsbyemail = "emailhosts.html"
htmlindvhost = "index.html"
htmlhosthist = "hosthist.html"
htmlemailsbyhost = "hostemails.html"

# Cascading style sheet filename. Will be created by ppstats for you.
css = "ppstats.css"

# All ip addresses from the proxy log files are converted to DNS names and
# then cached for a user defined amount of time. A value of zero means refresh
# on every run. This cache file is saved in your workingdir. If you run
# ppstats on a server with a slow internet connection, use a large cachedays.
CacheFile = "rc5-dns.cache" # DNS cache filename to be created.
CacheDays = 30 # Days to store cache before refreshing.

# GIF based chart options. Be sure to specify the full or relative path to the
# specially compiled GNUplot program with GIF support. Config and data files
# are create by ppstats for you.
GNUPlot = ""/usr/bin/gnuplot" # Path to GNUplot executable.
GNUPlotconfig = "gnuplot.ini" # GNUplot config file.
GNUPlotdata = "plot.data" # GNUplot data file.
GNUPlotoutput = "plot.gif" # Output GIF filename.

# The page counter component. See the documentation section above for details
# on how to obtain and use the Count.cgi program. To change the color of the
# displayed count number, change the prgb parameter. Note that you may have to
# do a 'echo "1" > rc5.dat' in your Counter/data folder for this to work. You
# can specify a different hit counter program by changing the counter variable.
#UseCounter = 0 # Do not use the hit counter.
UseCounter = 0 # Use the hit counter.
Counter = "/cgi-bin/Count.cgi?ft=0|tr=1|trgb=000000|srgb=00FF00|prgb=993333|md=8|dd=D|comma=T|df=rc5.dat"

# The By Host information page is sometimes not particularly practical for
# very large teams. You can display this section and ppstats will not record
# blocks submitted by host in any manner. The combined output file size and
# execution time will decrease substantially.
#ShowByHost = 0 # Do not show the By Host section.
ShowByHost = 1 # Show the By Host section.

========

Nog iets, als ik een "/" achter de regels bovenin ze zoals het er staat, dan krijg ik de foutmelding "cis a directory". En kan ik gnuplot uitschakelen, want die is niet op die server geinstalleerd dus daar krijg ik ook allemaal foutmeldingen dat die hem niet kan vinden.

Is er misschien een alternatief voor ppstats, mag lekker simpel zijn.

Alvast bedankt !

Verwijderd

heb je een goede gnuplot?

Verwijderd

Topicstarter
Nope, ik heb wel gnuplot in m'n home dir gezet maar als ik die run krijg ik een missing lib foutmelding, dus zolang ik geen root heb zal gnuplot niet werken volgens mij...

  • budi
  • Registratie: Januari 2000
  • Laatst online: 13:46
Je kan ook het pearl ppstats scriptje editen en ff GNUPlot eruit rippen. Dat heb ik ook moeten doen om hem onder Debian aan de praat te krijgen aangezien bij deze distibutie een GNU plot zit die geen Gif ondersteunt.

MY Systemconfiguration: 10fingers@5chars/s; 2legs@5km/h; 1mouth@14k4; 2ears@18Khz; 2eyes@-6&-7


  • crisp
  • Registratie: Februari 2000
  • Nu online

crisp

Devver

Pixelated

<BLOCKQUOTE><font size=1 face=Verdana, Arial, Helvetica>quote:</font><HR>#--- Output Options ----------------------------------------------------------
# Full path to output file location. This should end in a "/".
HtmlDir = "/www/htdocs/goesfont/proxy/stats/output"[/quote]zegt al genoeg?

Intentionally left blank


Verwijderd

Topicstarter
CRIPS --> Nee dat zegt nog heel weinig :
"Nog iets, als ik een "/" achter de regels bovenin ze zoals het er staat, dan krijg ik de foutmelding "cis a directory". "

Budi --> Hoe heb je dat gedaan !? Kun je misschien die geedite pearl script een naar me sturen.

Trouwens, als voorbeeld is die index op webz4all.com/proxy/stats/outputindex.html te zien.

  • crisp
  • Registratie: Februari 2000
  • Nu online

crisp

Devver

Pixelated

:o

* crisp heeft helaas meer verstand van ppstats op windows bak....

komop jongens! help deze jongen!

Intentionally left blank


Verwijderd

Topicstarter
Het is ook m'n eigen schuld, had het nooit op een PowerBSD bak moeten proberen :)

Dit is trouwens de echte foutmelding die ik krijg als ik er een "/" achter zet :

Personal Proxy Statistics : Cannot open /www/htdocs/goesfont/proxy/stats/output/ppstats.css (Not a directory)

<edit>
Okay, ff een output dir aangemaakt, ppstats gerund, begint die weer te zeiken over gnuplot :
Personal Proxy Statistics : Cannot execute /usr/bin/gnuplot /www/htdocs/goesfont/proxy/stats/output/gnuplot.ini (65280)

Kijk ik in die output dir, heeft die 4 files aangemaakt : gnuplot.ini, index.html, plot.data, ppstats.css

Enig idee hoe die gnuplot uit te zetten is ?
</edit>

  • budi
  • Registratie: Januari 2000
  • Laatst online: 13:46
Ik heb hem ff mijn geripte rc5stats.pl toegestuurd.

MY Systemconfiguration: 10fingers@5chars/s; 2legs@5km/h; 1mouth@14k4; 2ears@18Khz; 2eyes@-6&-7


  • Templar
  • Registratie: September 2000
  • Laatst online: 21-05 19:12
Ik had ook dat gezeik met gnuplot (SuSE 6.4). Opgelost om SuSE 6.1 te installeren :).
Werkt perfect.

Verwijderd

Topicstarter
Jaja, hij doet het ... en nog zonder gnuplot ook !

Mijn dank gaat bij deze uit naar Budi, THNX !

  • Templar
  • Registratie: September 2000
  • Laatst online: 21-05 19:12
zie nieuwe topic

  • budi
  • Registratie: Januari 2000
  • Laatst online: 13:46
Euhmm, ik zou nog de 'uncut'-versie van de ppstats doorsturen, omdat de versie die ik eerder doorsteurde nog andere modificaties had ondervonden.
Nu kan ik even niet bij mijn ICQ, dus leg ik het maar even uit hoe je GNUplot eruit sloopt:

1) open je favoriete editor
2) ga naar lijn 170800 en zet een # ervoor
3) of zoek op de volgende keywords: Subroutine to create GNUplot config file and system call to execute it. Ga naar onderaan dit blok en comment de regel met een # (die regel begint met system(....)

Da's alles, hardstikke simpel en handig als je een nieuwe distributie hebt die geen GNUplot met Gif support levert (Zoals Debian 2.2).

MY Systemconfiguration: 10fingers@5chars/s; 2legs@5km/h; 1mouth@14k4; 2ears@18Khz; 2eyes@-6&-7

Pagina: 1