Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    252

    Default chkservd and Tomcat

    Has anyone been able to get chkservd to monitor Tomcat?

    Thanks
    Mike

  2. #2
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    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

  3. #3
    Member
    Join Date
    Feb 2003
    Posts
    252

    Default

    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

  4. #4
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    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

  5. #5
    Member
    Join Date
    Feb 2003
    Posts
    252

    Default

    I was editing the server.xml file and not the server.xml.in file.

    Thanks,
    Mike

  6. #6
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    You need to edit both files.
    Regards,
    David
    Forum Moderator

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2002
    Location
    Kungsbacka, Sweden
    Posts
    103

    Question Tomcat_JSP failed

    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

  8. #8
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    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

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2002
    Location
    Kungsbacka, Sweden
    Posts
    103

    Default

    thanks. btw where do I find server.xml :-)

Similar Threads & Tags
Similar threads

  1. Tomcat Memory and Disk Allocaiton, Trying to help a user with Tomcat
    By bcvnbhjag in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-02-2011, 04:50 AM
  2. chkservd not monitoring clamd set at chkservd.conf
    By gflamerich in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-10-2008, 08:23 AM
  3. chkservd autoupdate tonight breaks tomcat monitoring
    By jsteel in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-16-2005, 03:30 PM
  4. chkservd and tomcat
    By dgbaker in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-14-2003, 10:51 PM
  5. chkservd and Tomcat / MySQL
    By jsteel in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-29-2002, 03:12 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube