Using the Tomcat Monitor is really simple. The only thing you need is to have the default Tomcat web administration, called the Manager, and available from the following URL :
This web module is protected by default by HTTP Basic Authentification. If you haven't already done it, you first need to read the tomcat-users.xml file.
Here is an example of this file :
<?xml version='1.0' encoding='utf-8'?>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="admin" roles="admin,manager"/>
The role "manager" is the one that the Manager web module need to authenticate its users. So, if you want to connect to this kind of URL, you need to create or use an existing user, that has in its roles the "manager" one. The login and password asked when creating a Tomcat collector match one of the user of this configuration file.
On Tomcat 7, the roles needed are "manager-status", "manager-jmx" and "manager-script".
You can now use correctly the Tomcat monitor on your servers
Copyright © AgileLoad. All rights reserved.