monit-agent, and start the Agent as a system service.
Before you begin
Prepare the following information before installation:
The Edge address must include a protocol prefix. Supported protocols are
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:
If
--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:
Approve a blocked Shell command
shell.exec automatically runs read-only diagnostic commands that meet its built-in safety rules. If a command does not pass the automatic rules but you have confirmed that it is appropriate for the current machine, sign in to the Linux host running the Agent and open an approval session as root:
- Press Enter to approve every command in the current batch.
- Press
nto reject every command in the current batch. - If you do not respond within ten seconds, the batch is rejected automatically. Concurrent commands that arrive later are queued and receive a full ten-second window after they are displayed.
- Input while no command is pending does not execute anything; the terminal continues to display the waiting status.
- Press
Ctrl-Cto close the approval session.
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.