monit-agent, and start the Agent as a system service.
Before you begin
Prepare the following information before installation:| Item | Description |
|---|---|
| Agent package download URL | https://static.flashcat.cloud/monitagent/monitagent-v0.0.11-linux-amd64.tar.gz. For ARM CPUs, replace amd64 with arm64. |
| Edge address | For example, ws://edge.example.com:6868 or wss://edge.example.com:6868. Edge version must be >= v0.44.0. View the Edge list and installation method here. |
| Local host object address | Use the current host’s fixed private IP or DNS name, such as 10.0.1.12. If omitted, the Agent uses the IP address associated with the local default route. |
| Read-only accounts for databases and middleware | To diagnose MySQL, Redis, PostgreSQL, MongoDB, Kafka, Elasticsearch, and other services, prepare read-only accounts and credentials in advance. |
ws://, wss://, http://, and https://. Use wss:// in production. ws:// and http:// can be used in internal networks.
Install monit-agent
The following steps use Linux as an example.Start in the foreground
The minimum startup command is:| Parameter | Required | Description |
|---|---|---|
--agent.edgeAddresses | Yes | The Edge address that the Agent connects to. |
--agent.configFile | Recommended | Path to the Agent configuration file. |
--agent.hostLocator | No | The current host object address displayed in the console. |
--agent.hostLocator is omitted, the Agent automatically selects the local default egress IP as the host object address. It is recommended to keep this value consistent with the machine identifier used by your monitoring system.
Configure multiple Edge addresses
If there are multiple Edge addresses, separate them with commas:Use Basic Auth or TLS
If Basic Auth is enabled on Edge, pass both the username and password:wss:// or https://.
Install as a system service
After the foreground startup works, install the Agent as a system service:hostLocator, restart the Agent. After modifying agent.yaml, send SIGHUP to reload the configuration:
Next step
After the Agent starts successfully, a host object usually appears on the monitoring object page within a few seconds. Next, read Configure Monitoring Objects to add database and middleware objects inagent.yaml.