Proxy stats

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

  • Fanman
  • Registratie: September 1999
  • Laatst online: 22-05 10:03
Ik loop nu al bijna een maand te kutten om statistics van mijn personal proxy te krijken met ppstats..

Ik krijg het maar niet voor elkaar.

Mijn ini:
#--- Team Information --------------------------------------------------------
Team = "The Dutch Quest"
TeamHome = "http://dutchquest.dyndns.org/"
TeamID = 338512

# Use team logo? Specify full URL to *.gif or *.jpg image.
LogoURL="http://dutchquest.dyndns.org/ATOMIC.gif"
#UseLogo = 0 # Do not use team logo.
UseLogo = 1 # Use team logo. Must specify full URL in LogoURL.


#--- 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 = "g:/"
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 = 60


#--- Output Options ----------------------------------------------------------
# Full path to output file location. This should end in a "/".
HtmlDir = "c:/Temp/"

# Full URL of output web file location. This should end in a "/".
HtmlRoot = "http://dutchquest.dyndns.org/"

# 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 = "c:/Stats/ppstats-rc5-7.1/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 = "c:/Stats/Gnuplot/Gnuplot.exe" # 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 = 1 # 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.


#--- Format Options ----------------------------------------------------------
# GIF based chart line style option. The default width is 520 and the
# default height is 400. 800 by 600 is nice for people with large monitors.
# Any value of 1 or less will disable the nth-day average feature.
#ChartLineStyle = 1 # Impulses style. Not useful with nth day average.
ChartLineStyle = 2 # Lines style.
#ChartLineStyle = 3 # Linespoints style.
ChartWidth = 520 # GIF image width.
ChartHeight = 400 # GIF image height.
DayAverage = 21 # Days of nth-day average.

# Days to track up/down movement.
MovementDays = 1

# Maximum number of rows to show per category page.
MaxRows = 100

# Number of days to display on the history pages.
DaysHist = 7

# Number of days to display for individual block history.
BlockHistory = 21

# Use header and/or footer banners?
UseHeaderBanner = 0 # Do not use header banner.
#UseHeaderBanner = 1 # Use header banner.
#UseFooterBanner = 0 # Do not use footer banner.
UseFooterBanner = 1 # Use footer banner.

# Consolidate numbers in hosts? ie, host12.myisp.com -> host?.isp.com
# See rc5-domain.cons for a list of domains you wish to manual consolidate.
# See rc5-ip.cons for a list of ip addresses you wish to manual consolidate.
# For instance, an entry in rc5-domain.cons like slashdot.org will consolidate
# the hosts www.slashdot.org, ftp.slashdot.org, and slashdot.org into
# ?.slashdot.org Some more examples are provided. Entries in rc5-domain.cons
# and rc5-ip.cons are processed regardless whether or not ConsHosts is
# enabled. Note that rc5-domain.cons works from the right, rc5-ip.cons the
# left. Note that the last entry in each array does not have a comma after it.
ConsHosts = 0 # Do not consolidate hosts.
#ConsHosts = 1 # Consolidate hosts.

# Last Seen column on the By Hosts page options. Times are defined in
# seconds. Colors are in RGB format, do not append a pound sign "#" to
# the front of the color string. Warning times should be less than
# Critical times. See default settings for examples on how to set these.
#ColorLastSeen = 0 # Do not color last seen.
ColorLastSeen = 1 # Color last seen column.
LastSeenWarningTime = 86400 # 24*60*60 default 24 hours warning time.
LastSeenCriticalTime = 604800 # 7*24*60*60 default 7 days critical time.
LastSeenWarningColor = "888800" # Dark yellow.
LastSeenCriticalColor = "BB0000" # Bright red.

# Category displacement colors for moving up or down in rank since
# yesterday. Defaults are green for up, red for down.
MoveUpColor = "009900" # Green
MoveDownColor = "990000" # Red

# Insert META REFRESH tag in html files? Refresh period in seconds.
#UseMetaRefresh = 0 # Do not use META REFRESH tag.
UseMetaRefresh = 1 # Use META REFRESH tag.
MetaRefreshPeriod = 900 # Refresh after this number of seconds.


#--- Color Configuration -----------------------------------------------------
# Color configuration settings. Several examples have been provided.
# Simply uncomment the section you want to use or modify, and comment
# out the rest. Do not append a pound sign "#" to the front. Must
# be in RRGGBB format.

backgroundcolor = "FFFFFF" # white
linkbarcolor = "EEEEEE" # light gray
linkbartitlefontcolor = "000000" # black
sectiontitlebarcolor = "770000" # dark red
sectiontitlefontcolor = "FFFFFF" # white
sectionlowlightcolor = "EEEEEE" # light gray
sectionhighlightcolor = "FFFFEE" # light yellow
sectionnotefontcolor = "000000" # black
historycolor = "770000" # dark red
avehistorycolor = "333399" # blue
ndayhistorycolor = "3333FF" # light blue
textcolor = "000000" # black
linkcolor = "993333" # red
visitedlinkcolor = "333399" # blue
activelinkcolor = "999999" # gray
fontstyle = "Arial, Verdana, Helvetica"



Mijn os :
Proggies : Windows 98
rc5 Proxy server : Freesco



Mijn locatie's van de proggies :
C:\Stats\Gnuplot
C:\Stats\Perl
C:\Stats\ppstats-rc5-7.1

Mijn locatie's van mijn logfiles ( via samba:
G:\

Ik krijg zodra ik het perlscript draai een halve seconde een zwarte window te zien en dan is hij weer weg en is er niets gebeurd.


Wie ow wie kan mij helpen.. ik ben ten einde raad !! :(

  • Fanman
  • Registratie: September 1999
  • Laatst online: 22-05 10:03
IEMAND ????? ... ehhh hello ??


HELLUUUUUUPPP
(8>

  • 0rbit
  • Registratie: Maart 2000
  • Laatst online: 20-05 13:55
#--- Output Options ----------------------------------------------------------
# Full path to output file location. This should end in a "/".
HtmlDir = "c:/Temp/"

# Full URL of output web file location. This should end in a "/".
HtmlRoot = "http://dutchquest.dyndns.org/"

# Relative 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 = "c:/Stats/ppstats-rc5-7.1/icons/"
Lijkt allemaal te kloppen behalve je icon-dir.

Ik ben geheel voldaan, dank u wel!


  • Tha_Snail
  • Registratie: Januari 2001
  • Laatst online: 22:42
Heb niet zo heel veel kennis van proxy's en ppstats, maar ik zou zeggen: probeer eens een debug, kijken wat daar uitkomt.

Verder kan ik natuurlijk alleen gissen waar het aan ligt, zonder ervaring:
LogDir = "g:/"
Dit is dus de directory waar je logfiles in zouden moeten zitten, dat klopt?
IconDir = "c:/Stats/ppstats-rc5-7.1/icons/"
Edit: Zoals Mr_Atheist even voor mij ook al typte:

Die moet dus wel in je htmldir staan, oftewel
HtmlDir = "c:/Temp/"
en dan bijvoorbeeld icons/, wat dan duidt op c:/Temp/icons.

Verder hoor ik nog vaak over een missend #hekje# voor regel euh.. 21 dacht ik, voor setpriority(0,0,20);. Daar dus een hekje voor zetten. Maar geldt alleen voor windows.
Edit: Dit staat dus in ppstats.pl.

  • Fanman
  • Registratie: September 1999
  • Laatst online: 22-05 10:03
Goed.. Resultaat : http://dutchquest.dyndns.org


Nu nog die Kl@te gnuplot aan de gang krijgen..

iemand een werkende versie voor mij ??
( ik heb de dos versie gedownload maar die doet het dus kennelijk niet.. ) :(

Nog meer tips ??

  • Tha_Snail
  • Registratie: Januari 2001
  • Laatst online: 22:42
Mijn GNUPLOT dinges in mijn ini:
code:
1
2
3
4
5
6
7
# 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  = "C:/distributed.net/ppstats/gnuplot.exe"  # Path to GNUplot executable.
GNUPlotconfig = "gnuplot.ini"                    # GNUplot config file.
GNUPlotdata   = "plot.data"                  # GNUplot data file.
GNUPlotoutput = "plot.gif"                    # Output GIF filename.

Ik heb die DOS GNUPLOT, en heb hem in m'n ppstats-map staan, in c:/distributed.net. Hij werkt hier.

Excuses voor de opgefokte lay-out, en ik suggereer eens de search te gebruiken, daar kun je altijd veel in vinden. Gewoon DPC selecteren en zoeken op 'ppstats' of 'gnuplot'. Boordevol werkende ini's, GNUen die plotten enz.

Verwijderd

Heb je ook, nadat je alles ahd aangepast, het script ge-debugged ?

Zo nee:
code:
1
perl -w C:\Stats\ppstats-rc5-7.1\ppstats-rc5-7.1.pl -debug

Zo moet t werken.
Hiermee zat ik ook een paar dagen te kutten :(
Pagina: 1