1. Home
  2. Docs
  3. ConfigFiles
  4. Agent
  5. Troubleshooting

Troubleshooting

Logging

The Backup Ninja agent log file is located under at /var/log/cm-agent.log:

$ tail -f /var/log/cm-agent.log
2021-01-14T03:35:25.036Z	info	Starting cm-agent v1.0.0-140...
2021-01-14T03:35:25.060Z	error	Agent API is not initialized
2021-01-14T03:35:25.068Z	info	Starting cm-agent v1.0.0-140...
2021-01-14T03:35:26.675Z	info	Registering agent on agent-auth-api.s9s.io:443
2021-01-14T03:35:29.827Z	info	Starting cm-agent v1.0.0-140...
2021-01-14T03:35:31.359Z	info	Authenticating agent to agent-auth-api.s9s.io:443
2021-01-14T03:36:59.394Z	info	Restarting the agent
2021-01-14T03:36:59.693Z	error	signal: terminated
2021-01-14T03:36:59.731Z	info	Starting cm-agent v1.0.0-140...
2021-01-14T03:37:01.269Z	info	Authenticating agent to agent-auth-api.s9s.io:443

Health check

You have multiple ways to confirm that the agent is running, as shown in the following sections.

Process

Verify by running the OS process check:

$ ps aux | grep cm-agent
root       98454  0.0  1.0 722428 20932 ?        SLsl 03:36   0:00 /usr/sbin/cm-agent

Service

Verify by using service manager:

$ systemctl status cm-agent
● cm-agent.service - Configuration management agent
     Loaded: loaded (/etc/systemd/system/cm-agent.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-01-14 03:36:59 UTC; 5min ago
   Main PID: 98454 (cm-agent)
      Tasks: 7 (limit: 2372)
     Memory: 8.1M
     CGroup: /system.slice/cm-agent.service
             └─98454 /usr/sbin/cm-agent

Jan 14 03:36:59 ip-10-0-0-195 systemd[1]: Started Configuration management agent.
Jan 14 03:37:01 ip-10-0-0-195 cm-agent[98454]: - /etc/mysql/my.cnf (file)
Jan 14 03:37:01 ip-10-0-0-195 cm-agent[98454]: -   /etc/mysql/conf.d (dir)
Jan 14 03:37:01 ip-10-0-0-195 cm-agent[98454]: -       /etc/mysql/conf.d/mysql.cnf (file)
Jan 14 03:37:01 ip-10-0-0-195 cm-agent[98454]: -       /etc/mysql/conf.d/mysqldump.cnf (file)
Jan 14 03:37:01 ip-10-0-0-195 cm-agent[98454]: -   /etc/mysql/mysql.conf.d (dir)
Jan 14 03:37:01 ip-10-0-0-195 cm-agent[98454]: -       /etc/mysql/mysql.conf.d/mysql.cnf (file)
Jan 14 03:37:01 ip-10-0-0-195 cm-agent[98454]: -       /etc/mysql/mysql.conf.d/mysqld.cnf (file)

Further Assistance

If you have any issues that required assistance, kindly contact the Severealnines support team by filling up the support request form.

Was this article helpful to you? Yes No