Troubleshooting CMA
Host checks​
- Linux
- Windows
Check that the service is running​
-
Execute the following command:
systemctl status centagent
-
If the service is not running, start it.
systemctl restart centagent
Check that the agent log file does not contain any errors​
Depending on the path configured for your log file, check for any errors:
grep error /var/log/centreon-monitoring-agent/centagent.log
No lines should be returned.
Check that the service is running​
-
Execute the following command:
services.msc
-
Search for Centreon Monitoring Agent in the list of services: if the service is not running, start it.
Check that the logs do not contain any errors​
Depending on the configuration, use the event viewer or look at the specified file.
Check that the connection to the poller is working​
- The agent connects to the poller
- The poller connects to the agent
- Execute the following command:
tnc <poller IP or DNS> -p 4317
The value true must be returned.
-
Port number 4317 must be open (inbound) on the host.
-
Execute the following command:
netstat -na | grep 4317
This command must return results, showing that the server is listening (ESTABLISHED).
-
Execute the following command:
tcpdump -i any port 4317
This command must return results, showing that packets are arriving from the poller.
Poller checks​
Check that the server is listening and that packets are arriving​
- The agent connects to the poller
- The poller connects to the agent
-
Port number 4317 must be open (inbound) on the poller.
-
Execute the following command:
netstat -na | grep 4317
This command must return results, showing that the server is listening (ESTABLISHED).
-
Execute the following command:
tcpdump -i any port 4317
This command must return results, showing that packets are arriving from the agent.
-
Port number 4317 must be open (inbound) on the agent.
-
Execute the following command:
tnc <Host IP or DNS> -p 4317
The value true must be returned.
Enable the OpenTelemetry logs​
-
Edit the monitoring engine's configuration file:
/etc/centreon-engine/centengine.cfg
-
Add the following line:
log_level_otl=trace
The different log levels are: trace, debug, info, warning, error, critical, disabled.
-
Restart the monitoring engine.
Check that the engine log file does not contain any errors​
Execute the following command:
grep error /var/log/centreon-engine/centengine.log
No CMA related lines should be returned.
Checks in Centreon​
The host and its configured services must return a status and metrics.
Location of poller and agent logs​
-
Poller logs:
/var/log/centreon-engine/centengine.log
-
Agent logs:
- Linux: by default,
/var/log/centreon-monitoring-agent/centagent.log
(this log location can be configured in /etc/centreon-monitoring-agent/centagent.json) - Windows: the location is the one you specified when installing the agent (by default, in the Windows Event Viewer).
- Linux: by default,