When I try to monitor a Tomcat Server of Version 5.x or above, I get the message "Authentication details are wrong".

When I try to monitor a Tomcat Server of Version 5.x or above, I get the message "Authentication details are wrong".

The following prerequisites must be fulfilled for Applications Manager to monitor Tomcat servers: 

  1. An application named Manager must be running in Tomcat Server Versions 5.x & above for Applications Manager to monitor the server. By default, this application will be running in the server. To check if it is already running, open the following url in your browser: http://host:port/manager/html. Try <host> as ipaddress, dns name and fully qualified dns name. Also, make sure the following folder is found in tomcat installation : <TOMCAT_HOME>/server/webapps/manager.
  2. The user role required to access the server must be manager for versions 5.x & 6.x and manager-jmx for version 7.x and above. To add a role as "manager" / "manager-jmx" for any of the users such as tomcat, role1, or both, you need make changes in tomcat-users.xml file located in the <TOMCAT-HOME>/conf directory. 

For Example:

For versions 5.x & 6.x :

Default configurations in tomcat-users.xml in Tomcat Server.

<tomcat-users>

<user name="tomcat" password="tomcat" roles="tomcat" />

<user name="role1" password="tomcat" roles="role1" />

<user name="both" password="tomcat" roles="tomcat,role1" />

</tomcat-users> 

After adding the roles for the "tomcat" user, the modified entries will be as follows:

<tomcat-users> 

<user name="tomcat" password="tomcat" roles="tomcat,manager" /> 

<user name="role1" password="tomcat" roles="role1" /> 

<user name="both" password="tomcat" roles="tomcat,role1" /> 

</tomcat-users> 

For versions 7.x and above: 

The modified entries will be as follows:

<tomcat-users><user name="tomcat" password="tomcat" roles="admin-gui,manager-gui,manager-jmx"/><user name="tomcat1" password="tomcat1" roles="manager-gui,manager-jmx"/></tomcat-users>

On making the configuration, restart the Tomcat Server.

Now, when adding a new Tomcat (5.x, 6.x and 7.x) monitor, specify the username/password of the user configured with role "manager" (5.x & 6.x ) / "manager-jmx" ( 7.x & above ), when discovering the Tomcat Server.


                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • REST API Monitor - FAQS

                        1. What should I do when Basic Authentication fails in REST API monitor? Verify if the credentials provided in the Applications Manager are correct. Try if sending username and password in Authorization request header works Get an BASE-64 encoded ...
                      • Real User Monitor (RUM) - Troubleshooting

                        If the monitor has not polled data for a long time, follow the steps below for troubleshooting: Step 1: Check prerequisites to be done Real User Monitor requires the RUM Agent to be installed and mapped to the Applications Manager. Refer the help ...
                      • Troubleshooting URL Monitor

                        Here are few of the common errors you may come across in URL monitor, we have mentioned the steps you can follow to troubleshoot them. General troubleshooting for URL monitor Ensure that the URL is accessible from the server in which Applications ...
                      • IIS Server monitor - Troubleshooting steps

                        Unable to add IIS Server monitor Follow the below given below to add an IIS server monitor in Applications Manager: First, check whether all the prerequisites are done. Check the IIS Server URL is accessible from Applications Manager server. If your ...
                      • When I monitor the WebLogic server, I get the "Access to the WebLogic MBean server is denied…." message. What should I do?

                        Scenario When I monitor the WebLogic server, I get the "Access to the WebLogic MBean server is denied. Enable "-Dweblogic.management.anonymousAdminLookupEnabled=true -Dweblogic.disableMBeanAuthorization=true" in the WebLogic startup file" message. ...