Error: Unable to restore run data (8)
Recently, my Webalizer froze and did not display any data after a specific day. It gave the following error:
Error: Unable to restore run data (8)
and something about a dns-cache.db lock.
To resolve this, I did the following:
Erased all my httpd log files (/etc/httpd/access_log).
Erased the old non-updating webalizer output pages at (var/www/html/usage) which varies by install.
Erased everything in (/var/lib/webalizer) which included:
I then restarted webalizer by typing 'webalizer' at the SSH command prompt using PuTTy.
Although this erased all my logs and prior info, it got things running again. Next time, I'll try deleting the HTTPD log files last to see if it works.
Re: Version 2.01.11
Did you commit your polish translation to the awffull (www.freshmeat.net/proj...) webalizer fork ? it could be nice.
> I've released un-official version
Re: User Color configurable
This patch is now maintained an have a webalizer-usercolor (www.freshmeat.net/proj...) freshmeat entry.
> I wrote a patch for webalizer that allow
> one to customize the colors of the
> charts with his/her own 10 colors map,
> in webalizer.conf.
webalizer-2.01-10 patch for your consideration
We have been successfully using modified webalizer-2.01-10 extensively on multiple sites, from the very large to the very small for some time now.
We have made a number of mods to the standard webalizer-2.01-10 distribution as well as built a number of tools to process multiple virtual sites as well as to create summary/rollup stats for all of the virtual sites on a given server.
The topic of this posting are the patches that we have applied to the webalizer-2.01-10 distribution. The URL:
contains 4 patches, 3 of which I recommend to all webalizer users and the 4th is a re-package of the geolizer patch.
does the following:
* ability to process very large log files (> 2GB in size)
* countries patch
Some of the entries on the list are not countries. In some cases the nation state status is contested. In other cases the entry is related to a territory that does not claim to be a country. In some cases what some claim is a country is in dispute by another country. And things like .arpa are not a country.
I recommend that one use the term 'location' instead of
'Nation' or 'Country' to avoid the whole mess. ;-)
Added are some missing locations (from the ISO UN codes and from GeoIP's list). Some location names have been corrected or changed to their official name. Added some more TLDs.
* avoid referrer spamming (IMPORTANT)
Spammers and other low-life forms have been stuffing the "top N referrer" table in order to get webalizer to generate links to their sites ... (perhaps because they think this will improve their search engine placement or perhaps because they wish to direct people to a poisoned web page in an effort to exploit some browser bug?). Whatever the reason, we don't need to give them their links.
This patch turns the "top N referrer" table into just values instead of A tag.
* correctly process log entries made during a leap second
* long referrer and search patch
Quite a few referrer and search strings are between 128 and 256 chars in length. Avoid truncating them.
* avoid 32 bit counter overflow
For very busy sites, 32 bit signed counters can overflow. This is particularly when using webalizer to cover a long span of time. This patch converts a few values to be u_int64_t to avoid these numeric overflow problems.
* extend the summary page for longer than 12 months
By default, webalizer only keeps the last 12 months of data. And at the start of a month, the oldest month is discarded resulting in only 11+ months of data.
This code gets around the 12 month limit by maintaining a history of older months in a parallel directory ../history.
See the webalizer page:
for an example of this effect.
NOTE: After the 2.hist.patch has been applied, the
should be run on a monthly basis. See the comments in the 2.hist.patch file as well as the track-hist tool itself for details.
The optional 3.geolizer.patch patch:
is If AND ONLY IF you use one the MaxMind
(www.maxmind.com/) GeoIP database. It is a just a reapplication of the geolizer.patch that works for Un*x / Linux / GNU-Linux systems after the first 3 patches have been applied.
-=-=- in Summary -=-=-
At a minimum, I'd highly recommend the 0.basic.patch patch.
Large web sites will want the 1.64bit.patch patch (after the 0.basic.patch has been applied). It doesn't hurt smaller sites to have it either.
Sites that want to keep more than 12 months of webalizer stats need the 0.basic.patch, 1.64bit.patch and the 2.hist.patch as well as the track_hist tool.
chongo (Landon Curt Noll) /\oo/\
Share and enjoy! :-)
Since Webalizer author seems not to be interested in further development, I'd like to inform anyone insterested, that I've released un-official version 2.01.11. CHANGELOG (wfmh.org.pl/carlos/fil...) and archives can be found there: wfmh.org.pl/carlos/.Enjoy ;)
I wrote a patch for webalizer to show human readable file sizes, but the author didn't respond...does anybody how to contact the author?
User Color configurable
I wrote a patch for webalizer that allow one to customize the colors of the charts with his/her own 10 colors map, in webalizer.conf. check webalizer-2.01-10-UserColor.diff (brouits.free.fr/share/...)
if you want to put your own colors.
different log format
I'm using different (really custom :) log format, and webalizer doesn't work. I known the webalizer's format, but I cannot use this program :(
Maybe I write a patch for webalizer for customing log input (because I think it's a great program).
Really the best tool
I'm using Webalizer over a year, it's always great to process gzip'ped raw-IP logs. It's webazolver is nice too, but I wanted a bit more... So I attempted to integrate GeoIP (freshmeat.net/projects...) into Webalizer, the result is a patch called geolizer, check it out here (freshmeat.net/projects...).
Once again, Webalizer kicks ass!
I think it is a brilliant project. I use this proc since last 3 month and it worked good. Everybody should use this programm....
A TCP load-balancing proxy.
An Eclipse plugin which provides a Vim-like input scheme for text editors.