Webalizer with DNS lookups
I am trying to get webalizer up and running on a RHEL 3.0 box, but am having problems with getting the DNS lookup to work. I configured webalizer as such...
./configure --enable-dns --with-db=/usr/include/db4 Config, compile, install all went fine, but when I try to run webalizer on one of my log files, I get this.... Warning: Invalid keyword 'DNSCache' (/etc/webalizer/kegworks.conf) Warning: Invalid keyword 'DNSChildren' (/etc/webalizer/kegworks.conf) DNS support not present, aborting... I've made sure that webalizer wasn't installed from an RPM anywhere on the box, removed, re-configured, re-compiled, and re-installed numerous times now, but still get the same error. Any ideas? |
Very easy, just turn on reverse DNS lookups in apache (op whatever webserver you are using). That will allow webalizer to see the dns names
|
Quote:
|
Are you able to do normal lookups from the machine? Like if you type "host [someipaddress]" is it able to convert the IP into a domain name? Check /etc/resolv.conf and be sure you've got good nameservers listed in there.
If you've got a whole bunch of log files you need to process on there, consider running a caching DNS server somewhere on your LAN or on the machine itself and it will speed up webalizer when it runs... otherwise it has to query your upstream ISP for all the lookups which can make it crunch for a while on all those log files. |
|
Quote:
|
Quote:
|
Maybe you have the wrong settings in your /etc/kegworks.conf file. The error you got seems to suggest that it doesn't like the keywords you put in the config file.
http://linux.cudeso.be/linuxdoc/weba...php#dns_lookup Can you post your config file for us to see. |
Quote:
Code:
LogFile /webserver/server/logs/temp/kegworks.com-access_log |
Quote:
Also, your config file is huge! Here's mine, which is typical of all the ones I have for each domain... Code:
## Webalizer Config File |
Quote:
Quote:
Quote:
|
Well, in that case it beats me! If you've configured with those arguments and it still acts like you haven't, you may want to try the webalizer mailing list.
http://groups.yahoo.com/group/webalizer/ The author of the package is active on there so I'm sure you can get some good help there. I hate directing people away from LQ, but sometimes you gotta go to the source. Sorry I couldn't help. |
Sorry,
Did you find the solution, because i am having the same problem... I hope yo read this... Thanks, |
Hey! Welcome to LQ!
I think the root of jnichel's original problem is that he didn't want to allow DNS lookups on his machine. Is that also the case for you? Its probably none of my business, but I'm just curious about why you wouldn't want to allow lookups on a machine anyhow? In post #3 jnichel seemed worried about causing additional load on his machine. I think it's safe to say that the load being put on a machine by webalizer isn't terribly much, and if you run it at 3am when things are quiet it's probably not going to cause your users much grief. |
Quote:
|
Quote:
|
I guess you want to use mysql so you can save the history of the logs and save some extra disk space emptying them, right???
If that's your idea, what language are you working on? I can help if you need some... |
Quote:
I'm using php for the front end, but Perl for the daily dumping/truncating of the logs to the db, Again, sticking with what I know. |
ok!
So you are going with the best!!! :D If you need help, i am on |
Webalizer fix
Hello,
I experienced the same problem, webalizer 2.0.10 didn't want to resolve dns saying "DNS Support is not enabled" although i had compiled with --enable-dns. After reading this thread i had a glance at the sources, there seem to be something wrong with the configure file, although --enable-dns was specifed when configuring, USE_DNS is never defined so the sources are compiled without dns support, there's also an issue with the berkeley db headers included by default, if HAVE_DB_185H is defined (and it never is even if the header is present) it should use <db_185.h> otherwise it fallbacks to <db.h> which is apparently incompatible (some functions prototypes differs so you get compile errors). I was to lazy to check the whole configure file to see where the error was so i decided to force DNS Support & use of db_185 by modifying slightly the makefile: Makefile - line 28, the original file looks like this LIBS = -lgd -lpng -lz -lm -lnsl DEFS = -DETCDIR=\"/etc\" -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHA VE_MATH_H=1 Modify the lines so they look like this: LIBS = -lgd -lpng -lz -lm -lnsl -ldb DEFS = -DETCDIR=\"/etc\" -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHA VE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H (you just need to append -ldb to LIBS, and -DUSE_DNS to DEFS -DHAVE_DB_185_H to DEFS) Once you modified the file just save, and do a: make clean make make install As long as you have the db_185.h header it should compile and link fine. Hope that helps... Regards |
solution
recompile your webalizer with --enable-dns :)
also, when you do ./configure --enable-dns --enable-debug... make sure you have your DB installed configure: warning: You must have a V1.85 compatable DB library! configure: warning: DNS lookup code will be disabled... ./configure --enable-dns --enable-debug --with-db=/usr/include/ --with-dblib=/usr/lib/ |
Fixed for me....
This is a really old thread (:eek:!) but I ran into the same problem and was able to eventually get it fixed.
The problem was two-fold... A) Didn't have the Berkeley DB libraries and headers installed B) Had to do a 'make clean' before doing a new 'make' == A == When you configure webalizer, even with the --enable-dns option, you need to be on the lookout for this warning: configure: WARNING: db.h not found.. DNS/GeoDB code disabled! configure will complete even with that warning message and tell you to run 'make'... but DNS support won't be included. You have to watch for that warning message. If you see it, it means Berkeley DB isn't installed. == B == After installing Berkeley DB, I redid the ./configure and it showed that db.h was found, but after doing a make && make install, webalizer was still saying that DNS support wasn't present. This was because re-running ./configure didn't invalidate all the old '*.o' files in the webalizer src dir and dns support was still missing from them. I had to do an explicit 'make clean' before doing the 'make && make install'. Hope this helps someone! :) ---Lawrence |
All times are GMT -5. The time now is 11:43 PM. |