APM FSO Agent Troubleshooting KB

APM FSO Agent Troubleshooting KB

Use this guide when the FSO Agent install command fails. Find the step marked FAILED in the output, then go to that section.

Prerequisites

Requirement Windows Linux
Applications Manager user Admin (to generate the command) Admin (to generate the command)
Run the command as PowerShell opened with Run as Administrator A user with sudo, or root (sudo must still be installed)
Tools needed PowerShell script execution allowed wget (required), curl (for live status on the FSO Agent page)
Working folder A folder you can write to A folder you can write to
Network access HTTPS to Applications Manager HTTPS to Applications Manager

Which host and port? Use the address under Settings → Discovery & Data Collection → FSO Agent → Agent Bundle & Capabilities → Applications Manager address. By default, this is the server agent port, or the SSL port if the server agent port is disabled. If the target server needs a different address (an FQDN, IP, NAT or proxy address), edit Host or Port, save, and copy the regenerated install command.

Self-signed certificates are fine. The install command doesn’t validate the Applications Manager certificate, so certificate errors are not a cause of failure.

How to read the output

The first line shows the address the command connects to. Check it if the connection fails.

Windows

FSO agent registration - https://<host>:<port>
[1/5] Checking administrator privileges .... OK
[2/5] Checking for an existing agent ....... OK
[3/5] Connecting to <host>:<port> .......... OK
[4/5] Downloading the installer ............ OK
[5/5] Installing FSO agent ................. OK

Linux

FSO agent registration - https://<host>:<port>
[1/5] Checking sudo access ................. OK
[2/5] Checking for an existing agent ....... OK
[3/5] Connecting to <host>:<port> .......... OK
Uninstalling existing FSO agent ...... OK (only when reinstalling)
[4/5] Downloading the installer ............ OK
[5/5] Installing FSO agent ................. OK

When a step fails, it shows FAILED and an ERROR: message. A failed run always ends with a support line that includes the log file path, if a log was kept.

On success you’ll see: The FSO Agent is installed. It appears in View Agents once it registers with Applications Manager.

Find your error

What you see Go to
running scripts is disabled on this system (Windows) Script blocked
A license key is required… License key missing
[1/5] ... FAILED Step 1: Privileges
[2/5] ... ALREADY INSTALLED Step 2: Existing agent
[3/5] ... FAILED Step 3: Connection
Uninstalling existing FSO agent ... FAILED (Linux) Uninstall failed
[4/5] ... FAILED Step 4: Download
[5/5] ... FAILED Step 5: Installation
WARNING: Could not send '<stage>' status… Status warning

Script blocked (Windows)

Error: … cannot be loaded because running scripts is disabled on this system.

Cause: The PowerShell execution policy blocks scripts.

Fix:

  1. In the same elevated PowerShell window, run:
    Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
  2. Run the install command again.

Note: If the policy is set by Group Policy, contact your system administrator.

License key missing

Prompt: Enter the Applications Manager license key
Error: A license key is required. Copy the install command again from Applications Manager.

Cause: The command was run without its key. This usually means it was copied only partly, or the script file was run on its own.

Fix: Copy the complete install command from the FSO Agent page and run it again. Don’t run register.sh or register.ps1 by themselves.

Step 1: Privileges check failed

Windows

Error: Run this script from an elevated PowerShell (Run as Administrator).

Fix: Open PowerShell with Run as Administrator and paste the full install command.

Linux

Error: No sudo access. Run 'sudo -v' to authenticate, then re-run this script.

Cause: The script checks sudo without prompting for a password, so the check fails if your sudo session has expired.

Fix:

  1. Run sudo -v and enter your password.
  2. Run the install command again within a few minutes.

Error: sudo is required but not installed on this machine.

Cause: sudo is not installed. This check also applies when you’re logged in as root.

Fix: Install sudo (yum install sudo or apt-get install sudo), then run the command again.

Step 2: Agent already installed

Message: [2/5] Checking for an existing agent ... ALREADY INSTALLED, followed by The FSO Agent is already installed on this server. No changes were made.

If the existing agent is working, no action is needed.

To reinstall on Windows

  1. Uninstall the FSO Agent from Settings → Apps → Installed apps.
  2. Run the install command again.

To reinstall on Linux

At the prompt Uninstall the existing FSO agent and reinstall? [y/N]:, answer y. The script removes the old agent only after the connection check in Step 3 passes, so the server is never left without an agent.

Got “No changes were made” without answering? Pressing Enter counts as No, and so does running the command without an interactive terminal (for example, from an automation tool). Run it from a terminal and answer y, or uninstall first:
sudo /opt/applicationsmanager/monagent/bin/uninstall

Step 3: Cannot connect to Applications Manager

Error: Cannot reach Applications Manager at <host>:<port>. Check the host name and port, and make sure a firewall is not blocking the connection.

Cause: One of these:

  • The host name can’t be resolved from the target server.
  • A firewall blocks the port.
  • The address in the command is wrong.

Fix:

  1. Test the connection from the target server:
    Windows: Test-NetConnection <host> -Port <port>
    Linux: timeout 5 bash -c "</dev/tcp/<host>/<port>" && echo open
  2. If the host name doesn’t resolve, change Host to an FQDN or IP under Agent Bundle & Capabilities → Applications Manager address, then copy the new install command.
  3. If the port is blocked, allow it in every firewall between the two servers.

Linux: Uninstall of the existing agent failed

This appears only when you answered y in Step 2.

Error:

  • Uninstall failed. See <log>
  • Uninstall did not remove the existing FSO agent. See <log>

Fix:

  1. Open fso_agent_register.log and check the Uninstall: section.
  2. Run the uninstaller manually and fix any error it reports:
    sudo /opt/applicationsmanager/monagent/bin/uninstall
  3. Confirm that /opt/applicationsmanager/monagent/bin/uninstall no longer exists, then run the install command again.

Step 4: Installer download failed

Linux

Error: Download failed (wget exit code <n>). See <log>

wget exit code Meaning What to do
127 wget is not installed Install it (yum install wget or apt-get install wget) and retry.
4 Network failure Check proxy and firewall rules for HTTPS between the two servers, and make sure TLS 1.2 is enabled.
8 Applications Manager returned an error, usually 404 Not Found Upload the latest FSO Agent bundle in the FSO Agent Bundle step and retry.

For any other code, check the Download: section of the log.

Error: Downloaded installer is empty: <url>

Fix: The installer file on Applications Manager is empty or incomplete. Upload the FSO Agent bundle again and retry.

Windows

Error: Download failed from <url>: <reason>

Reason contains What to do
(404) Not Found Upload the latest FSO Agent bundle in the FSO Agent Bundle step and retry.
Unable to connect, connection was closed, SSL/TLS secure channel Allow HTTPS downloads from Applications Manager (check the proxy and firewall), and make sure TLS 1.2 is enabled.

Error: Installer not found at <path> after download.

Fix: Make sure the current folder is writable and that antivirus isn’t removing the downloaded .msi file.

Check the installer URL manually

From the target server, open:

  • Windows: https://<host>:<port>/resources/FSO/latest/server/windows/installer/ApplicationsManager_Windows_Installer.msi
  • Linux: https://<host>:<port>/resources/FSO/latest/server/linux/installer/ApplicationsManagerFullStackAgent_LinuxIns.sh

Step 5: Installation failed

Windows

Error: Installation failed (msiexec exit code <n>). See <log>

Exit code Meaning What to do
1603 General install error In the log, search for Return value 3 and read the lines just above it. The cause is often permissions or antivirus.
1618 Another installation is in progress Wait for it to finish, or restart the server, then retry.
1625 Blocked by system policy Contact your system administrator.

Note: Exit code 3010 is not an error. The agent is installed, and you’ll see Restart this machine to complete the setup. Restart the server when convenient.

Linux

Error: Installation failed (installer exit code <n>). See <log>

Fix: Check the Install: section of the log for the reason.

Error: Installer finished, but no FSO agent was found at /opt/applicationsmanager/monagent/bin/monagent. See <log>

Cause: The installer can finish without reporting an error even when nothing was installed. In that case, check the Install: section of the log. Common causes:

  • The agent files couldn’t be downloaded from Applications Manager. Check the Step 4 items and re-upload the bundle if needed.
  • The license key was rejected. Copy a fresh install command and retry.
  • The server isn’t 64-bit x86. Run uname -m; the output must be x86_64.

Status warning (safe to ignore)

Message: WARNING: Could not send '<stage>' status to AppManager (…)

Meaning: The command couldn’t update its live progress on the FSO Agent page. Installation continues normally.

  • On Linux, (server unreachable) can also mean curl isn’t installed.
  • If the page shows the wrong status, check View Agents, or generate a new install command next time.

Log files

fso_agent_register.log is saved in the folder where you ran the command. It’s deleted when installation succeeds and kept when it fails.

Windows Linux
When it’s created Only at Step 5 (msiexec verbose log). If the failure is earlier, use the on-screen message. At the start of every run
What it contains msiexec install log Output of the download, uninstall and install, in sections named Download:, Uninstall: and Install:
Where to find it An elevated PowerShell usually opens in C:\Windows\System32. Look there, or cd to another folder before running the command. The folder you ran the command from

The license key is masked (********) in the kept log, so it’s safe to share with Support.

Note: On Windows, if you see WARNING: Could not redact the license key from <log>, the log may still contain the key. Remove it before sharing the log.

Still need help?

Email appmanager-support@manageengine.com with:

  • the full console output of the install command
  • <command_executed_dir>/fso_agent_register.log, if it exists
  • the target server’s OS and version, and your Applications Manager build number

                    New to ADSelfService Plus?

                      • Related Articles

                      • Log Monitoring - via FSO Agent

                        Applications Manager · AppLogs Centralized log monitoring through the FSO Agent Collect, parse, index and search application and server logs from one page, alongside metrics and traces. 60+ predefined log types FSO Agent log collector 7–90 days ...
                      • APM Insight Java Agent – Onboarding & Troubleshooting Guide

                        This document is a step-by-step guide to onboarding and troubleshooting the APM Insight Java Agent, for both the standalone agent and the FSO Auto Profiler. It covers agent attachment, version compatibility, configuration, connectivity, data ...
                      • FSO agent — Unable to enable AppLogs or APM Insight on an installed FSO agent

                        Covers only an agent that is already onboarded and reporting. If the agent was never installed or is not listed at all, follow the FSO agent installation guide instead. Symptom The agent is listed and reporting CPU, memory and disk normally. Enabling ...
                      • Downloading Agent Logs from Remote Servers for Troubleshooting

                        Applications Manager allows you to remotely collect server agent logs from monitored machines for troubleshooting purposes. The retrieved logs are compressed and stored on the Applications Manager server. Supported Versions Server Agent version ...
                      • How to rename an existing APM - Java agent application's monitor?

                        In Applications Manager's APM(Application Performance Monitoring) doesn't support renaming applications/monitors from the web client. However, the application name of an existing application instance can be renamed in the `apminsight.conf` file and ...