Has anyone been able to get chkservd to monitor Tomcat?
Thanks
Mike
Has anyone been able to get chkservd to monitor Tomcat?
Thanks
Mike
You need to enable a port in server.xml like the 8082 test connector
<!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 -->
<Connector className="org.apache.catalina.connector.http10.HttpConnector"
port="8082" minProcessors="1" maxProcessors="1"
enableLookups="true" redirectPort="8443"
acceptCount="1" debug="0"/>
and then put this in a tomcat file in /etc/chkserv.d
#SERVICE = PORT, SEND, RESPONSE, RESTART COMMAND
service[Tomcat_JSP]=8082,GET / HTTP/1.0,HTTP/1..,/usr/sbin/stoptomcat;/usr/sbin/starttomcat
Last edited by dgbaker; 02-28-2003 at 08:47 PM.
Regards,
David
Forum Moderator
Hello
Thanks that worked great, until we installed JSPs on a site and then the added text got deleted from the server.xml file.
Is there a specific place that the text should go in the file? We have it listed under the line " <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 -->"
MIke
That is the correct spot. But check if there is a server.xml.in file. If there is make the same change in there as well. Reason being is that the .in file is what cpanel uses when adding servlets, it regenerates the server.xml from scratch.
Hope that helps.
Regards,
David
Forum Moderator
I was editing the server.xml file and not the server.xml.in file.
Thanks,
Mike
You need to edit both files.
Regards,
David
Forum Moderator
Hi
After upgrading to tomcaty 4.1.2 we get the service monitor message about : Tomcat_JSP failed
Jsp is woking fine the servlets aswel. Any clue what to change so status monitor will monitor the new installation?
We had 4.0.3 installed bofore
In 4.1.2 you need to go back and enable a listen port as listed above. Make sure the port matches what chkservd is looking for.
Regards,
David
Forum Moderator
thanks. btw where do I find server.xml :-)