Toon posts:

Hulp nodig met mijn stats pagina

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

Verwijderd

Topicstarter
Ik heb met de hulp van the Wizard (HEEEL veel dank alvast :) ) een scriptje in elkaar geflanst... die staat hier :

http://members.home.nl/pimmie/1.ini

hij loopt goed door maar er wordt geen HTML pagina gegenereerd.... wie heeft hier genoeg verstand van... (the Wizard is even niet beschikbaar)

  • crisp
  • Registratie: Februari 2000
  • Laatst online: 00:45

crisp

Devver

Pixelated

Als je onder windows draait moet je ff wat aanpassen in perl (.pl) script; in het script zelf staat meen ik wel wat.
Tijdje terug was er ook zo'n topic als deze, dus als je het niet kan vinden in het script moet je maar ff de oudere topics af.

Suc6

Intentionally left blank


Verwijderd

Hier heb je mijn INI file.
Aanpassen alleen daar waar PAS AAN boven staat.

Alle RC5 rommel staat in de c:\dnetc directory met PROXY voor een keyserver en met STATS voor de output van de statistieken.

Gebruik verder een programma zo als APACHE om een folder als internet site te krijgen.

link naar mijn ini is http://212.187.94.87/ppstats-rc5.ini

Verwijderd

Zoek op de peetst van dnet onder 3th party-shit naar ppstats... dan op hun webpage verderlezen..

Verwijderd

Topicstarter
Alvast bedankt Sir.K

Ik heb hem en ga deze even proberen....
:)

  • crisp
  • Registratie: Februari 2000
  • Laatst online: 00:45

crisp

Devver

Pixelated

Heb je mail ontvangen, en ben ff gaan spitten.

Het perl-script; de regel die je moet wijzigen:

# setpriority(0,0,20);

Gewoon een # voorzetten dus; er staat bij dat 't voor NT geldt, maar dus ook voor win9x!

Dan je ini-file

Om te beginnen moet het pad naar de log-dirs een volledig pad moeten zijn, bv:

LogDir = "c:/perproxy/"

Je zal ook een echt pad moeten opgeven voor je HTML output, bv:

HtmlDir = "c:/html/"

Als je vanaf je eigen pc een webserver draait mag dit ook in je wwwroot zijn, maar geef een volledig pad op.
PPstats upload niet uit zichzelf naar een externe webserver, hier zal je zelf een scriptje voor moeten schrijven.

Je icon-dir moet je relatief tov je html-dir moeten opgeven, dus:

IconDir = "icons/"

(zonder / ervoor dus!)
Voor GnuPlot is het een beetje tricky, aangezien je hiervoor backslashes moet gebruiken, en een volledig padnaam. In jouw geval dus:

GNUPlot = "c:\html\wgnuplot.exe"


Ik heb zelf een batchfile waarmee ik het zooitje genereer, en upload naar m'n webserver:

perl -w D:\Progra~1\ppstats-rc5-7.1\ppstats-rc5-7.1.pl -debug
ftp -s:batchftp.txt xxx.xxx.xxx.xxx

batchftp.txt bevat vervolgens de ftp commando's.

Suc6!

Intentionally left blank


Verwijderd

Topicstarter
Crisp....YOU THE MAN !!!!!!!

onbelievelijk.... wat is dit gaaf :) :) :)

na zoveel geklooi loopt het spul cool

212.204.142.59:2000/index.html

10000000000000000000000000 X thanks

  • Config
  • Registratie: Januari 2000
  • Laatst online: 06-01-2025
Ik heb een ander probleem: Personal Proxy Statistics : Cannot open ppstats-rc5.ini (No such file or directory)

Terwijl hij er toch echt staat...

D:\>c:\wwwroot\perl\bin\MSWin32-x86\perl.exe d:\ppstats\ppstats-rc5-7.1.pl

zo voer ik hem uit vanaf de win2k command prompt...

Verwijderd

gaat eerst eens staan in de dir d:\ppstats en probeer het dan nog eens.
Kan veel schelen.

  • Config
  • Registratie: Januari 2000
  • Laatst online: 06-01-2025
dat meen je niet he....

:(:( KUT :(:(

*SHAME*

anyway...nu krijg ik dit:

perlglob wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.
internal error: glob failed at d:\ppstats\ppstats-rc5-7.1.pl line 487.
perlglob wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.
internal error: glob failed at d:\ppstats\ppstats-rc5-7.1.pl line 493.

ik zie in de config niets over perlglob...

http://www.dutchpowercows.org/full.dsp?id=70

Verwijderd

kun/wil je die ini file beschikbaar stellen, eventueel met alle gegevens van waar wat moet komen te staan of staat?

  • Config
  • Registratie: Januari 2000
  • Laatst online: 06-01-2025
ok...ik zet hem maar ff hier neer, moet kunnen toch?


#--- Team Information --------------------------------------------------------
Team = "Dutch Power Cows!!!"
TeamHome = "http://www.dutchpowercows.org"
TeamID = 263

# Use team logo? Specify full URL to *.gif or *.jpg image.
LogoURL="http://www.tweakers.net/g/dpc.jpg"
#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 = "c:/wwwroot/rc5/log/"
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 = "c:/wwwroot/rc5/"

# Full URL of output web file location. This should end in a "/".
HtmlRoot = "http://swift.shacknet.nu/rc5/"

# 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 = "D:\GNUPlot\wgnupl32.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 = 7

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

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

# 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.

# Original Distributed.Net theme, as far as I remember.
#backgroundcolor = "000000" # black
#linkbarcolor = "1144AA" # blue
#linkbartitlefontcolor = "FFFFFF" # white
#sectiontitlebarcolor = "AAAAAA" # light gray
#sectiontitlefontcolor = "000077" # dark blue
#sectionlowlightcolor = "000000" # black
#sectionhighlightcolor = "808080" # gray
#sectionnotefontcolor = "FF0000" # red
#historycolor = "A0A0A0" # light gray
#avehistorycolor = "1144CC" # blue
#ndayhistorycolor = "6688FF" # light blue
#textcolor = "FFCC66" # gold
#linkcolor = "BBBBBB" # light gray
#visitedlinkcolor = "BBBBBB" # light gray
#activelinkcolor = "BBBBBB" # light gray
#fontstyle = "Arial, Verdana, Helvetica"

# Current Distributed.Net theme, more or less.
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"

# GNOME theme (by Kevin Pesce kpesce@netscape.net)
#backgroundcolor = "EEEEE0" # light gray
#linkbarcolor = "CCCCC0" # light gray
#linkbartitlefontcolor = "330000" # dark red
#sectiontitlebarcolor = "BBBBB0" # light gray
#sectiontitlefontcolor = "552222" # dark red
#sectionlowlightcolor = "EEEEE0" # light gray
#sectionhighlightcolor = "DDDDD0" # light gray
#sectionnotefontcolor = "330000" # dark red
#historycolor = "888880" # gray
#avehistorycolor = "666660" # gray
#ndayhistorycolor = "333330" # dark gray
#textcolor = "330000" # dark red
#linkcolor = "770000" # red
#visitedlinkcolor = "600000" # dark red
#activelinkcolor = "600000" # dark red
#fontstyle = "Arial, Verdana, Helvetica"

# Slashdot.org theme (by Kevin Pesce kpesce@netscape.net)
#backgroundcolor = "FFFFFF" # white
#linkbarcolor = "CCCCCC" # light gray
#linkbartitlefontcolor = "003333" # dark green
#sectiontitlebarcolor = "006666" # dark green
#sectiontitlefontcolor = "FFFFFF" # white
#sectionlowlightcolor = "CCCCCC" # light gray
#sectionhighlightcolor = "EEEEEE" # light gray
#sectionnotefontcolor = "333333" # dark gray
#historycolor = "225555" # dark green
#avehistorycolor = "005522" # green
#ndayhistorycolor = "006600" # light green
#textcolor = "333333" # dark gray
#linkcolor = "006666" # green
#visitedlinkcolor = "003333" # dark green
#activelinkcolor = "003333" # dark green
#fontstyle = "Arial, Verdana, Helvetica"

# Themes.org theme (by Kevin Pesce kpesce@netscape.net)
#backgroundcolor = "000000" # black
#linkbarcolor = "000000" # black
#linkbartitlefontcolor = "F6DB91" # light brown
#sectiontitlebarcolor = "000000" # black
#sectiontitlefontcolor = "F6DB91" # light brown
#sectionlowlightcolor = "000000" # black
#sectionhighlightcolor = "303030" # dark gray
#sectionnotefontcolor = "9EFFA6" # lime green
#historycolor = "A7A7A7" # light gray
#avehistorycolor = "9EFFA6" # lime green
#ndayhistorycolor = "F6DB91" # light brown
#textcolor = "FFFFFF" # white
#linkcolor = "C4A9CE" # purple
#visitedlinkcolor = "C4A9CE" # pruple
#activelinkcolor = "FFFFFF" # white
#fontstyle = "Arial, Verdana, Helvetica"

# Linux.org theme (by Kevin Pesce kpesce@netscape.net)
#backgroundcolor = "E8E8FF" # light purple
#linkbarcolor = "C02C72" # pink
#linkbartitlefontcolor = "C02C72" # pink
#sectiontitlebarcolor = "7237C0" # purple
#sectiontitlefontcolor = "FFFFFF" # white
#sectionlowlightcolor = "EBE8FF" # light purple
#sectionhighlightcolor = "EBE8FF" # light purple
#sectionnotefontcolor = "000000" # black
#historycolor = "C02C72" # pink
#avehistorycolor = "000088" # blue
#ndayhistorycolor = "0000AA" # blue
#textcolor = "000000" # black
#linkcolor = "0000AA" # blue
#visitedlinkcolor = "0000AA" # blue
#activelinkcolor = "0000AA" # blue
#fontstyle = "Arial, Verdana, Helvetica"

# Team AnandTech colors (by Mika Anderson mika.anderson@home.com)
#backgroundcolor = "FFFFFF" # white
#linkbarcolor = "E6DAC1" # light brown
#linkbartitlefontcolor = "004828" # hunter green
#sectiontitlebarcolor = "004828" # hunter green
#sectiontitlefontcolor = "E0D4BF" # light brown
#sectionlowlightcolor = "E0E0E0" # light grey
#sectionhighlightcolor = "F0F0F0" # light grey
#sectionnotefontcolor = "330000" # dark red
#historycolor = "004828" # brown
#avehistorycolor = "660000" # dark red
#ndayhistorycolor = "660000" # dark red
#textcolor = "330000" # dark red
#linkcolor = "229900" # green
#visitedlinkcolor = "660000" # dark red
#activelinkcolor = "600000" # dark red
#fontstyle = "Arial, Verdana, Helvetica"

Ik heb alle paden al ingevuld zoals ik ze wil hebben...

Verwijderd

heb jij het programma gzip?
regel LogDecompressor=
zo nee zet dan ProcessZipLogs=0

Probeer HtmlRoot="/" als eerste om te zien of dat hij wel een dump geeft?

set UseCounter=0 voor het gemak, daarmee kun je altijd nog experimenteren.

UseFootBanner=0 ook voor het gemak.

ConsHost=0


Probeer deze gegevens eerst eens en kijk wat er gebeurt, daarna kun je verder met de waardes spelen maar dan heb je misschien een werkend geheel.

  • Config
  • Registratie: Januari 2000
  • Laatst online: 06-01-2025
Ja ik heb alles veranderd...maar de foutmeldingen blijven ongewijzigd :(.

Er worden wel html pagina's aangemaakt, maar geen plaatjes gemaakt.

Verwijderd

dan is de verwijzing naar de gnuplot niet goed, verander die eens.

  • crisp
  • Registratie: Februari 2000
  • Laatst online: 00:45

crisp

Devver

Pixelated

Is dit wel een versie gnuplot die gif output kan genereren? Zoniet, meel me dan ff, dan heb ik er wel een voor je.

Intentionally left blank


  • Config
  • Registratie: Januari 2000
  • Laatst online: 06-01-2025
Ja die versie wordt door anderen gebruikt waar het wel lukt....

en het pad is goed.

Verwijderd

Ik gebruik hier Gnuplot 3.7 wat verder geen problemen oplevert.

Ik zou denken dat zonder die verwijzing naar gnuplot de fouten er misschien er uit zijn, probeer dat eens al was het maar om de fout devinitief vast te stellen.

  • LuCarD
  • Registratie: Januari 2000
  • Niet online

LuCarD

Certified BUFH

Config: moet je bij TeamID niet 10313 hebben staan???

En waar moet je eigen dnet userid neer zetten?

Programmer - an organism that turns coffee into software.


  • NightBird
  • Registratie: Januari 2000
  • Laatst online: 21:50

NightBird

DPC-Crew Coding
Ja, TeamID is 10313

Eigen id kan je nergens neerzetten, hoeft ook niet aangezien er vanzelf een lijstje van alle emailadressen in de stats komt van mensen die flushen.

WatHoorJeWaar · Asobakken
Eerdere projecten: Leading Courses · Brandstof-zoeker.nl · Voertuig-zoeker.nl


  • LuCarD
  • Registratie: Januari 2000
  • Niet online

LuCarD

Certified BUFH

Heb je dan geen persoonlijke stats meer bij D.net? :(

Dat zou ik heel jammer vinden....

Programmer - an organism that turns coffee into software.

Pagina: 1