WHM Server Monitoring: HTTP 401 when connecting an existing Agent360 installation
Environment
-
cPanel & WHM 138.0 (build 29)
-
Server Monitoring plugin: 2.16.1-1.2.1
-
Agent package: 1.1.2
-
AlmaLinux 8
-
Agent service: active and running
Problem
I am trying to activate Server Monitoring in WHM. The activation fails consistently.
The server already has an existing Agent360 installation, which was successfully registered on September 14, 2026.
The installation log confirms that the agent obtained a server ID. The following files are present:
-
/etc/agent360.ini -
/etc/agent360-token.ini
The agent service is running.
However, when WHM attempts to connect the existing agent, the following error appears in /usr/local/cpanel/logs/error_log:
Agent360 already running. Fetching api_key for the already existing 360 account.
Unable to fetch the api_key for already existing 360 account.
The response to HTTP request from
https://api.monitoring360.io/server/create-api-key
indicated an error
(401, Unauthorized):
{"status":"error","message":"Failed to create API key [5]"}
The relevant request was logged on November 29, 2026.
Diagnostics already performed
-
Both cPanel monitoring packages are installed.
-
The Agent360 systemd service is active.
-
The existing token file is present and readable.
-
The agent configuration is present.
-
The WHM configuration file
/root/.360monitoring/configdoes not exist. This appears to be because the API-key retrieval fails before WHM can save the credentials. -
The cPanel source code in
Whostmgr::360Monitoring::Setupconfirms that the plugin detects the running agent and attempts to retrieve an API key using the existing user ID and server ID from/etc/agent360-token.ini.
The plugin's Auth.pm sends a POST request to server/create-api-key with these two identifiers.
Questions
-
What exactly does API error
Failed to create API key [5]mean? -
Is this error caused by an invalid, expired, or otherwise unrecognized existing user/server association?
-
Is there a supported way to reconnect an existing Agent360 installation to WHM without deleting or recreating its existing registration?
-
Could this be a server-side account or eligibility issue with the 360 Monitoring service?
I have deliberately not run /scripts/initialize_360monitoring or removed any existing configuration files, because I do not want to destroy the existing agent registration before understanding the cause.
Any advice on how to diagnose this safely would be appreciated.
-
Hey there! I spoke with the Monitoring team and they let me know that you'll have to create a ticket for this issue. We would need the user and server ID and potentially other identifying information as part of the troubleshooting, which we can't share over the forum.
0
Please sign in to leave a comment.
Comments
1 comment