Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 51442 invoked from network); 1 Apr 2008 15:37:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Apr 2008 15:37:33 -0000 Received: (qmail 98459 invoked by uid 500); 1 Apr 2008 15:37:22 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 98231 invoked by uid 500); 1 Apr 2008 15:37:22 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 98220 invoked by uid 99); 1 Apr 2008 15:37:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 08:37:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.79.86.52] (HELO mail.sonae.com) (194.79.86.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 15:36:41 +0000 Received: from LX3EXCHUB001.optimus.pt (172.19.13.152) by lx3exchub002.optimus.pt (172.19.13.142) with Microsoft SMTP Server (TLS) id 8.1.240.5; Tue, 1 Apr 2008 16:36:51 +0100 Received: from lx2exc002.optimus.pt (10.232.50.14) by LX3EXCHUB001.optimus.pt (172.19.13.152) with Microsoft SMTP Server (TLS) id 8.1.240.5; Tue, 1 Apr 2008 16:36:50 +0100 Received: from lx2exc002.optimus.pt ([10.232.50.14]) by lx2exc002.optimus.pt ([10.232.50.14]) with mapi; Tue, 1 Apr 2008 16:36:50 +0100 From: Nuno Manuel Martins To: Tomcat Users List Date: Tue, 1 Apr 2008 16:36:48 +0100 Subject: RE: status worker Thread-Topic: status worker Thread-Index: AciUCkk0FRRDbYSNQJufpWY+YQhBiQAA9Ftw Message-ID: References: <47F2285E.6030905@kippdata.de> <47F24FC4.2040409@kippdata.de> In-Reply-To: <47F24FC4.2040409@kippdata.de> Accept-Language: en-US, pt-PT Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, pt-PT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Thank you. It was related with the virtual hosts and it Works now. Regards, Nuno -----Original Message----- From: Rainer Jung [mailto:rainer.jung@kippdata.de] Sent: ter=E7a-feira, 1 de Abril de 2008 16:08 To: Tomcat Users List Subject: Re: status worker Nuno Manuel Martins wrote: > Hi, > > I tried before to do as you said and it did not work. I guess this is bec= ause when I make the request the one answering is Apache httpd and not Tomc= at, and I don't think httpd has any clue of what a status worker is. Sure it has. It asks mod_jk and mod_jk knows all about worker statistics etc. and generates an HTML page. > I tried to simplify it with just these 3 lines: > worker.jkstatus.type=3Dstatus > worker.jkstatus.host=3Drh02 > worker.jkstatus.port=3D10002 host/port not needed (but doesn't harm either) > So that it knows where to find Tomcat but still the same problem as with = the other 2 previous configurations: > The requested URL /jkmanager was not found on this server. Do you have any virtual hosts? If so, you need to put the JkMountFile into the virtual host, which handles your /jkmanager request. If it doesn't work at all, set JkLogLevel to debug, restart httpd and send a single request for /jkmanager. After that, post the contents of the JkLogFile. Regards, Rainer > -----Original Message----- > From: Rainer Jung [mailto:rainer.jung@kippdata.de] > Sent: ter=E7a-feira, 1 de Abril de 2008 13:20 > To: Tomcat Users List > Subject: Re: status worker > > Nuno Manuel Martins wrote: >> Hello, >> >> I am new to tomcat in general and I am trying to setup jk_mod (using 1.2= .25) and I have already successfully installed it and put workers serving d= ynamic content from the tomcat server with load balancing. >> >> Now I wanted to setup the status worker to get some statistics. I am usi= ng the default configuration for it but probably something basic is missing= : >> >> worker.properties file: >> >> worker.list=3Dlb1 , lb2 , jkstatus >> [...] >> jkstatus.host=3Drh02 >> jkstatus.port=3D10001 >> jkstatus.username=3Dmanager >> jkstatus.password=3Dtomcat >> jkstatus.url=3Dhttp://${jkstatus.host}:${jkstatus.port}/jkstatus >> jkstatus.testlb=3Dlb1 >> jkstatus.testworker=3Dworker42 >> >> uriworkermap.properties file: >> /jkmanager=3Djkstatus >> >> Apache httpd.conf file: >> JkWorkersFile /usr/local/apache2/conf/workers.properties >> JkMountFile /usr/local/apache2/conf/uriworkermap.properties >> >> Include /usr/local/apache2/conf/tomcat-55.conf >> Include /usr/local/apache2/conf/tomcat-50.conf >> >> Apache httpd is on host rh01 and Tomcat server is on host rh02. When I t= ry to access http://rh01/jkmanager it just says it can't find the document.= .. can someone say what am I missing? The documentation doesn't provide muc= h troubleshoot :( >> >> Regards, >> Nuno > > Correct your workers.properties > > Remove all of the above lines of the form > > jkstatus.attribute=3Dvalue > > because none of the attributes you are using makes much sense. > > Add: > > worker.jkstatus.type=3Dstatus > > to let mod_jk know, when it tries to send a request to the worker with > name jkstatus, that there is not host/port/Tomcat behind it, but instead > it should generate its own status page. > > If it works, then you should add an authentication/authorization > mechanism inside httpd to the URL /jkmanager (e.g. a Location directive > and inside a required user/password; this can be done with usual httpd > procedures, nothing mod_jk specific). > > Regards, > > Rainer --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org