Skip to main content
Different 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

ChangeHow it takes effect
Host collection, MySQL, Redis, PostgreSQL, MongoDB, Kafka, Elasticsearch, and other configurations in agent.yamlSend SIGHUP to reload
Edge address, Basic Auth, TLS, hostLocator, audit directoryRestart the Agent
Send SIGHUP:
sudo systemctl kill -s HUP monitagent
Restart the service:
sudo systemctl restart monitagent
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:
1

Check whether the Agent is running

sudo systemctl status monitagent
2

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.
3

View Agent logs

sudo journalctl -u monitagent -n 100
4

Check agent.yaml

If agent.yaml was modified, confirm that the file has no YAML syntax errors.

Checks when objects do not appear

SymptomWhat to check
Monitoring object page is emptyFirst 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 appearCheck the corresponding targets, locator_mappings, and credential file configuration.
Elasticsearch object does not appearConfirm 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.1Configure locator_mappings for the target and map it to a fixed private IP, DNS name, or host:port.
  1. Onboard only the host object first.
  2. After the host appears in the console, gradually add database objects such as MySQL, Redis, and PostgreSQL.
  3. After each object appears, enable controlled query tools such as mysql.query, redis.command, postgres.query, mongodb.command, and elasticsearch.cat only when needed.

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.