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 ADSelfService Plus?

                    • Related Articles

                    • Mail Server Monitor - Troubleshooting

                      Common Mail Server Monitor Errors and Troubleshooting Guide 1. Unknown Host Error Description: This error occurs when the mail client cannot resolve the hostname of the mail server to an IP address. The issue typically arises from DNS resolution ...
                    • 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 ...
                    • DNS Monitor - Troubleshooting

                      Common DNS Monitor Errors and Troubleshooting Guide 1. Host Not Found Description: The DNS server was unable to locate the requested lookup address. Possible Causes: This may happen if the hostname is incorrect, the domain does not exist, or there is ...
                    • 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 the RUM Agent configuration 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 ...