From: Hai N. Q. <hai...@vs...> - 2007-12-26 10:34:23
|
Hi Mr Bj=F8rn Ruberg, Sorry for my late reply. I installed mod_watch following these steps: - download mod_watch-4.3_apache22_mod.tar.gz - uncompress and compile them with some edit in Makefile.dso (as = instruction in http://trac.inetcentral.de/ispcp/wiki/howto_munin) - add this line in httpd.conf: LoadModule watch_module /usr/lib/apache2/modules/mod_watch.so - when I restart apache, it says no error As I put it in httpd.conf, it's supposed to load when restarting apache, = if you know another way to check mod_watch is loaded, please show me how > <IfModule mod_status.c> > # > # Allow server status reports generated by mod_status, > # with the URL of http://servername/server-status > # Change the ".example.com" to match your domain to enable. > # > ExtendedStatus On > <Location /server-status> > SetHandler server-status > Order deny,allow > Deny from all > Allow from 127.0.0.1 > </Location> > </IfModule> When I tried to access http://localhost/server-status I got error 403 The error log says: [client 127.0.0.1] client denied by server configuration: = proxy:http://internal.mydomain.com/watch-list I got this same error for http://localhost/watch-list or = http://localhost/server-info or http://localhost/watch-info or = http://localhost/watch-table=20 If I try to Allow from all with this configuration: > <IfModule mod_status.c> > # > # Allow server status reports generated by mod_status, > # with the URL of http://servername/server-status > # Change the ".example.com" to match your domain to enable. > # > ExtendedStatus On > <Location /server-status> > SetHandler server-status > Order deny,allow > # Deny from all > Allow from all > </Location> > </IfModule> When trying to browse http://localhost/server-status, the error I got is = 404, and the log says nothing It's the same for /watch-list, /server-info, /watch-info, /watch-table Does it make any sense for you? Thanks in advanced for your kindly help Best regards, Hai Nguyen -----Original Message----- From: Bj=F8rn Ruberg [mailto:bj...@ru...]=20 Sent: Wednesday, December 12, 2007 4:25 PM To: mun...@li... Cc: Hai Nguyen Quang Subject: RE: [munin-users] apache_watch_ give an error that no mod watch = exists on port 80 > Hai Nguyen Quang > Hi, > > I did download mod_watch from this site > http://forums.cacti.net/about15475.html > > I tried to lynx http://localhost/watch-list but it doesn't respond What does "doesn't respond" mean? Timeout? Access denied? Unknown URL? What do your logs tell you? > But when I try to lynx http://localhost/ it goes to my homepage > My server acts as a proxy server so maybe it need special = configuration. Maybe. And of all the people on this list, you are the one who knows = your configuration best. And because this really seems to be an Apache configuration problem and not a Munin related issue, you should rather contact an Apache user mailing list. However, below are a few hints and tips to help you debug your problem. Please note that the questions are not there because -I- want to know, = but for -you- to identify where your Apache configuration is inadequate or erroneous. > I did add these lines in my apache.conf, but it still doesn't work: You need to be systematic and descriptive in your debugging. What is = "it"? And how does "it" not work? Are you sure the mod_watch module are loaded? If you are sure, how did = you find out? > <IfModule mod_status.c> > # > # Allow server status reports generated by mod_status, > # with the URL of http://servername/server-status > # Change the ".example.com" to match your domain to enable. > # > ExtendedStatus On > <Location /server-status> > SetHandler server-status > Order deny,allow > Deny from all > Allow from 127.0.0.1 > </Location> > </IfModule> Are you able to access http://localhost/server-status? If not, why? What do the Apache logs tell you? > <IfModule mod_info.c> > > #Allow remote server configuration reports, with the URL of > # http://servername/server-info (requires that mod_info.c be = loaded). > #Change the ".example.com" to match your domain to enable. > > <Location /server-info> > SetHandler server-info > Order deny,allow > Deny from all > Allow from 127.0.0.1 > </Location> > </IfModule> And likewise, are you able to access http://localhost/server-info? Logs? > <IfModule mod_watch.c> > # Allows the URL used to query virtual host data: > # > # http://www.snert.com/watch-info > # > <Location /watch-info> > SetHandler watch-info > Order allow,deny > Allow from 127.0.0.1 > </Location> Similar for this URL. What is written to the logs when you access http://localhost/watch-info? > # Intended for debugging and analysis of shared memory > # hash table and weenie files: > # > #http://127.0.0.1/watch-table > # > > <Location /watch-table> > SetHandler watch-table > Order allow,deny > Allow from 127.0.0.1 > </Location> > > <Location /watch-list> > SetHandler watch-list > Order allow,deny > Allow from 127.0.0.1 > </Location> > </IfModule> Also check these URLs and monitor your logs. Good luck! --=20 Bj=F8rn |