Troubleshoot URL connectivity using PowerShell script (CheckURL.ps1)

Troubleshoot URL connectivity using PowerShell script (CheckURL.ps1)

Purpose:

      Some customers may experience intermittent URL connectivity issues in monitors like IIS Server, Azure, AWS, etc., where the monitor Health/Availability fluctuates between up and down during consecutive polls. This often occurs due to minor network disruptions at the time of polling, even when the URL works fine on subsequent checks.

To identify this, a PowerShell script is available to monitor a URL continuously with a shorter frequency and for a specified duration. Since the minimum poll interval in Applications Manager is 1 minute, this script helps detect intermittent network errors with a frequency of seconds.

Usage:

  1. Open PowerShell in the Applications Manager installed server and navigate to <AppManager-Home>\bin\troubleshooting directory
  2. Execute the script using the command below:
    .\CheckURL.ps1
  3. Enter the following inputs when prompted:
    1. Problematic URL: The URL you want to monitor.
    2. Frequency (in seconds): Time interval between checks (1-300 seconds). We recommend using small values (e.g., 5 or 10 seconds) to capture rare network issues.
    3. Duration (in hours): How long to monitor the URL. Leave blank to run for 12 hours by default.
  4. You can press Enter at any time to stop the script immediately.
  5. The script logs all URL responses to the URLResponseLog.txt file in the same directory.

Check the URLResponseLog.txt file for any intermittent errors while monitoring the problematic URL. This log will help identify network instability and aid in troubleshooting connectivity issues.

Notes
This script is available in Applications Manager version 173304, 174301 and 174600 onwards.

                  New to ADSelfService Plus?

                    • Related Articles

                    • How to set the PHP path during agent installation?

                      This is only applicable to the agent versions 4.2 and above. For Linux Step 1: Download the installation script. wget -O InstallAgentPHP.zip https://www.manageengine.com/products/applications_manager/54974026/InstallDataExporter.zip && unzip ...
                    • Add Amazon Monitor with Required IAM Permissions

                      This article explains how to add Amazon monitors using only the required APIs (Custom IAM Policy - second method ↓) Methods to Configure IAM Permissions for Amazon Monitoring Read Only Access (AWS Managed Policy - Recommended) This predefined policy ...