monit-agent configuration changes take effect in different ways. This guide explains when to reload, when to restart, and how to confirm that monitoring objects have been onboarded successfully.
Configuration reload rules
| Change | How it takes effect |
|---|---|
Host collection, MySQL, Redis, PostgreSQL, MongoDB, Kafka, Elasticsearch, and other configurations in agent.yaml | Send SIGHUP to reload |
Edge address, Basic Auth, TLS, hostLocator, audit directory | Restart the Agent |
If you only add or adjust object configuration in
agent.yaml, use SIGHUP reload first. Restart is needed only when startup parameters or service-level parameters change.Verify successful onboarding
After the Agent starts, a host object usually appears on the monitoring object page within a few seconds. If the page is still empty, check the following in order:Check whether the Edge address is correct
Make sure the address includes
ws:// or wss://, and confirm that the Edge for the current tenant is online.Checks when objects do not appear
| Symptom | What to check |
|---|---|
| Monitoring object page is empty | First confirm whether the host object appears. If no host object appears, check the Agent process, Edge address, and logs first. |
| A database or middleware object type does not appear | Check the corresponding targets, locator_mappings, and credential file configuration. |
| Elasticsearch object does not appear | Confirm that the cluster is reachable. The Agent must obtain cluster_name through GET _cluster/health during startup or reload. |
Object address appears as localhost or 127.0.0.1 | Configure locator_mappings for the target and map it to a fixed private IP, DNS name, or host:port. |
Recommended onboarding order
- Onboard only the host object first.
- After the host appears in the console, gradually add database objects such as MySQL, Redis, and PostgreSQL.
- After each object appears, enable controlled query tools such as
mysql.query,redis.command,postgres.query,mongodb.command, andelasticsearch.catonly when needed.
Related docs
Monitoring Objects Overview
Learn how monitoring objects and monit-agent work.
Configure Monitoring Objects
View configuration examples and recommendations for each object type in agent.yaml.