Real User Monitor (RUM) - Troubleshooting
If the monitor has not polled data for a long time, follow the below steps 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 this help page to know how to setup RUM Agent for Real User Monitoring.
Follow the below steps to verify the connectivity with APM (Supported only from RUM Agent version 3.5 and above)
Access the RUM Agent web console by opening (http://agenthost:agentport) in a browser. Replace the agenthost and agentport with your RUM Agent host and port details. Applications Manager connectivity status should be success. In case of any error, refer the below troubleshooting guide.
Step 2: Verify the RUM script injection
- Real User Monitoring in Applications Manager requires RUM script injection in the website monitored.
- Make sure the RUM script shown in the RUM monitor details page in Applications Manager is injected properly in the webpage intended to be monitored.
- Verify if the RUM agent protocol, host name, port and App key are specified correctly in the RUM script injected.
(window,document,'$agentprotocol://$agenthost:$agentport/RUMScript.js?appKey=','apmr','$monitor_app_key');
- "agentprotocol" - RUM Agent protocol 'http' or 'https' .
- "agenthost" - Hostname or FQDN where the RUM Agent is installed.
- "agentport" - Port number in which the RUM Agent is running. The port number should correspond to the agent protocol.
- "monitor_app_key" - Unique key used to identify the monitor in Applications Manager. App Key can be seen in RUM monitor details page -> Copy Script tab.
- Make sure the script injected in the application belongs to the respective monitor. In case of mismatch data will be pushed to another monitor.
Step 3: Ensure the connectivity between the Client browser and RUM Agent
- Open any browser and then open its developer tool by pressing F12, Click Networks tab and search for "rum" in the filter.
- Access the webpage in which the RUM script is injected. Request for RUMScript.js can be seen.
- If the RUMScript.js request fails, Verify the agent host and port details in the request.
Note: End users accessing the website monitored in Applications Manager should have access to the RUM Agent. If the website is accessible in internet, RUM Agent ports should also be opened in firewall.
- Mixed content error: If the website monitored is accessed in HTTPS and the script injected points to RUM Agent HTTP port, Then browser will block the request with mixed content error.
For this, Update the script injected in the application with RUM Agent HTTPS port and protocol to resolve the error.
(window,document,'https://$agenthost:$agenthttpsport/RUMScript.js?appKey=','apmr','$monitor_app_key');
- Content security policy: If the web server has strict content security policy, browser will block the request with CSP error. Troubleshooting Guide.
- If the RUMScript.js request is not seen, verify the script injection in the page monitored. Check if the Content security policy directive prevents the inline script. Troubleshooting Guide.
Step 4: Check the RUMScript.js response
- Open any browser and then open its developer tool by pressing F12, Click Networks tab and search for "rum" in the developer tool.
- Access the webpage in which the RUM script is injected.
- Check for any error message in the RUMScript.js response.
- If error message is shown, Follow the next step to resolve the error.
Step 5: Troubleshoot using the error message
APPMANAGER NOT REACHABLE
Check if Applications Manager is accessible from the machine where RUM Agent is installed.
- Verify Applications Manager details provided in AppServer.properties file located under <RUMAgent_Home>/conf/ directory.
- Refer the KB to know how to change Applications Manager details in RUM Agent.
- If Proxy is required to communicate with Applications Manager configure the same by referring the KB.
INCOMPATIBLE VERSION
- Make sure you use compatible version of RUM Agent for Applications Manager. Refer the download page to know the compatibility matrix.
INVALID KEY
- Provide valid RUM API Key in AppServer.properties by referring the KB.
- RUM API Key will present in Settings -> REST API -> Real User Monitor in Applications Manager.
INCOMPATIBLE EDITION
- Real User Monitor is not supported in Free edition of Applications Manager. You need to purchase an license or use a trial edition of Applications Manager.
RUM ADD-ON NEEDS TO BE PURCHASED
- You need to purchase an RUM add-on for enabling RUM data collection. Refer the help page for pricing details.
AGENT MAPPING FAILED or INTERNAL ERROR
- Internal server error has occurred. Contact out support team to resolve the issue.
PAGE VIEWS QUOTA EXCEEDED
- We allow only certain amount of page views per month based on the license purchased.
- When the page views have exceeded the limit allowed per month, PAGE VIEWS QUOTA EXCEEDED message will be shown and data collection will be stopped.
- Page views used count will be reset to zero on every month start.
- Data collection will begin once page views used count is reset.
Purchase license based on your customer base to avoid above case.KEY NOT FOUND
- Restart RUM Agent and check again.
- Above message will be shown when RUM Agent is trying to fetch monitor details from Applications Manager on RUM Agent startup. Wait till RUM Agent fetches RUM monitor details from the Applications Manager.
- Above message can also be seen when the respective monitor is deleted in Applications Manager or the key has been modified in the script injected in the webpage.
- Note down the RUM monitor key from the script displayed in respective monitor details page in Copy Script Tab. Sample key AfHowG5D62YOiWQHXp84DpV8eC2waN2E10000217. Search for the same key in the script injected in the web page. If the key has been modified, replace it with the exact key shown in respective monitor details page in Copy Script Tab.
Note : If the RUM monitor is mapped to specific RUM Agent, data collection will happen only in that specific agent.
MONITOR IS EITHER UNMANAGED OR UNDER MAINTENANCE IN APPMANAGER
- Monitor is either in unmanaged state or under maintenance (downtime scheduled for the monitor) in Applications Manager
- Manage the monitor in Applications Manager or wait until the data collection gets resumed after downtime for the monitor
Note: After making above changes if the data collection did not begin, restart RUM Agent once and check the issue.
X Dont's
- Placing multiple scripts in the same webpage. It will affect RUM data collection.
- Placing same script in multiple webpages. It will populate multiple webpage data in single monitor from where the script was taken.
- Don't keep Applications Manager server down for long time. Applications Manager should be up for continuous data collection.
Still facing issues?
If the problem persists, contact our support team along with the following details: Zip file of <RUMAgent_Home>/logs folder.
Share the latest Support Information File (SIF) from Applications Manager, with the "Print all logs" option enabled. To do this, go to Settings > Logging, and choose "Print all logs".
Other Help Links :
- RUM Agent FAQS
- How to get ISP data in Real User Monitor?
- How to enable HTTPS connection between end user and RUM Agent?
New to ADSelfService Plus?
Related Articles
Troubleshoot - RUM Agent silent installation
RUM Agent silent installation can fail on various factors based on your environment, troubleshoot with the help of error message shown while running the script. Below are the list of the error messages thrown from the script and its troubleshooting ...
How to enable HTTPS connection between end user and RUM Agent?
By default end user data will be collected and sent via HTTP connection to RUM Agent. To enable HTTPS connection you should have an valid SSL Certificate (keystore file basically), not a self signed certificate. This step applies only to RUM Agent ...
How to get ISP and Region data in Real User Monitor?
The default setting of the Real User Monitor does not display ISP and region data for the end user. To obtain the data, you have the option to use a third-party Geolocation API. Currently, RUM exclusively supports APIs that provide responses in JSON ...
Self monitor Applications Manager using Real User Monitoring
We can monitor the Applications Manager using Real User Monitoring with a Java Script injection and this can be used to measure the Applications Manager's performance continuously. All you need is to install and setup the Real User Monitoring (RUM) ...
Real User Monitoring Agent - Frequently asked questions
How to change Applications Manager details in RUM Agent? Open the AppServer.properties file located under <RUMAgent_Home>/conf/ directory in any text editor. Update Applications Manager hostname in apm.host key. Update Applications Manager SSL Port ...