Troubleshooting Enterprise Manager

Troubleshooting installation/deployment issues for Enterprise Manager and Agent

Is the MariaDB Enterprise repository configured correctly?

The agent is distributed as a native OS package that can be installed from the MariaDB Enterprise repositories. The repositories can be installed by following the repository installation instructions.

Make sure to use the mariadb_es_repo_setup script with your Customer Download Token.

Was the agent installed successfully?

The agent installation can be done with the native package manager for your OS.

# For Red Hat/CentOS/Rocky
sudo dnf install -y mema-agent

# For Debian/Ubuntu
sudo apt install -y mema-agent
Did the agent setup complete successfully without errors?

The mema-agent setup command should produce no errors if it is successful. You can always run the setup again by generating the installation command from the GUI and then executing it again on the target server.

Did the setup fail on a MariaDB node?

Make sure that MariaDB is listening on the loopback adapter address. If MariaDB cannot be accessed on port 3306 on localhost, the setup command should define the port with --mariadb-port and the host with --mariadb-host. To use a UNIX domain socket, use --mariadb-socket instead.

Did the setup fail on a MaxScale node?

Make sure that the --maxscale-host uses the correct protocol. If MaxScale REST-API is configured to use HTTPS use --maxscale-host=https://127.0.0.1:8989. If the TLS certificates used in the MaxScale REST-API are self-signed, you can disable TLS certificate verification by adding the --maxscale-insecure option to the setup command.

Did the agent processes start up successfully?

The agent processes run as systemd services. Use normal systemd commands to inspect the state of the agent.

Show the agent status

Show status
sudo systemctl status mema-agent.slice

If the agent didn't start, errors will be shown in the status output. Once errors are fixed, start the agent again.

Start agent
sudo systemctl start mema-agent.target

For a more detailed analysis of errors, inspect the agent logs.

Show the agent logs

The agent uses the systemd journal for logging:

Agent logs
sudo journalctl -u mema-agent.slice --no-pager
Can the agent collect MariaDB metrics?

The credentials that the agent uses to connect to MariaDB require certain grants in order to collect all metrics. Check the Quickstart Guide for the set of grants and verify that the user provided with --mariadb-user has the necessary grants.

If the MariaDB metrics agent is working correctly, the logs should not have any errors. Check the logs with:

MariaDB exporter logs
sudo journalctl -u mema-agent-mariadb-exporter.service

To verify the MariaDB metrics agent is running, inspect the raw metrics output:

Raw metrics check
curl -s http://127.0.0.1:18902/metrics | wc -l

The output should contain about 3000 lines if everything is working.

Is MaxScale able to send metrics?

Make sure that the version of MaxScale you have installed is 25.10 or greater. Older versions do not support sending metrics.

Any errors in metrics exporting are logged on the info level in MaxScale. To enable info logging, run:

Enable MaxScale info logging
maxctrl alter maxscale log_info=true

Info level logging is verbose and may cause large log volumes. Once issues are resolved, disable info logging:

Disable MaxScale info logging
maxctrl alter maxscale log_info=false
Can the agent connect to the Enterprise Manager?

To check connectivity between the agent host and the Enterprise Manager, use curl. If your Enterprise Manager is at 192.168.122.16, the following commands show the expected responses:

Expected curl checks
$ curl http://192.168.122.16:4318
Client sent an HTTP request to an HTTPS server.

$ curl -k https://192.168.122.16:4318
404 page not found
  • The first command should report an HTTP-to-HTTPS error.

  • The second command should return 404 page not found.

If there are errors, check that port 4318 is open on the Enterprise Manager server and that network connectivity between the agent host and the Enterprise Manager is working.

If the curl commands produce the expected output and the agent status does not report errors after five minutes of startup, the agent is successfully sending metrics to the Enterprise Manager.

Are the metrics available in the Enterprise Manager?

To verify metrics are stored in the time series database, query a system OS metric. Example (assumes Enterprise Manager at 192.168.122.16 and default admin:mariadb credentials):

Query metric
curl -u admin:mariadb -k "https://192.168.122.16:8090/prometheus/api/v1/query?query=node_os_info"

The result should be a JSON object with one object per node in the data.result array.

Is the time synchronized between Enterprise Manager and agents?

When agents push metrics they include the agent’s timestamp and Enterprise Manager assumes those timestamps are accurate. If Enterprise Manager and monitored instances are not time-synchronized, you can observe:

  • Misaligned graphs

  • Missed alerts

  • Dropped/future/old samples that create “no data” gaps

  • Poor alignment with logs/traces/events

Ensure clocks are synchronized (for example using NTP/chrony) to avoid these issues.

This page is: Copyright © 2025 MariaDB. All rights reserved.

Last updated

Was this helpful?