• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need help with OGR stats

CLL Sr

Senior member
I am trying to get ppstats-ogr to run. It seems to be having a problem reading the log file. It will run and produce blank pages for stats.(ie. no stubs shown being completed).
Here is a snip of the ini.

# 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 "logogr", 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 = " D:\pProxy\"
LogPre = "pproxyogr" # For ogrpkeyYYYYMMDD
LogSuf = "log" # For ogrpkeyYYYYMMDD.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 ogrpkeyYYYYMMDD.log.gz
LogTmpSuf = "log.tmp" # For ogrpkeyYYYYMMDD.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 = "D:\ogr\



Anyone have an idea what I might try? I'm running this on Win2k-pro. I have set the directory permissions with no luck.
TIA,
Chris
 


<< # LogDir should end in a &quot;/&quot;.
LogDir = &quot; D:\pProxy\&quot;
LogPre = &quot;pproxyogr&quot;
>>



Do the paths in the pproxy ini match EXACTLY the paths in ppstats ini? Also, note the entry &quot;LogDir should end in a &quot;/&quot;&quot;. That's a forward slash, not a back slash as you have in the path. Not sure if that matters in Win32, but it does in Linux.

The other thing is to make sure that your log prefix is the same in the pproxy ini as that you've shown above.

Russ, NCNE


 
I tried both the / &amp; \ in the ini file. It works in rc5 stats the way I have it above. The preface is the same, I even put the path in so there was no mistake. Here is what the output is.

stats
 

After running the debug program here is the problem I suspect. I have no idea what this means though.


Use of uninitialized value in numeric eq (==) at ppstats-ogr-7.1.pl line 531.
Use of uninitialized value in numeric eq (==) at ppstats-ogr-7.1.pl line 531.
Use of uninitialized value in numeric eq (==) at ppstats-ogr-7.1.pl line 531.
Use of uninitialized value in numeric eq (==) at ppstats-ogr-7.1.pl line 531.

 
Back
Top