Skip to main content

Troubleshooting CMA

image

Host checks​

Check that the service is running​

  1. Execute the following command:

    systemctl status centagent
  2. 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 connection with the poller is working​

  1. Execute the following command in PowerShell:

    tnc <poller IP or DNS> -p 4317

    The following value must be returned:

    Connection to <IP ou DNS collecteur> 4317 port [tcp/http] succeeded!

Poller checks​

Check that the server is listening and that packets are arriving​

  1. Port number 4317 must be open (inbound) on the poller.

  2. Execute the following command:

    ss -plant | grep 4317

    This command must return results, showing that the poller is listening (LISTEN) or that the connection is established (ESTABLISHED).

    State           Recv-Q       Send-Q             Local Address:Port                Peer Address:Port       Process
    LISTEN 0 0 0.0.0.0:4317 ::::
    State           Recv-Q       Send-Q             Local Address:Port                Peer Address:Port       Process
    ESTAB 0 0 0.0.0.0:4317 <HOST IP>:<PORT>

Execute the following command:

tcpdump -i any port 4317

This command must return results, showing that packets are exchanged between agent and poller.

Enable the OpenTelemetry logs​

  1. Edit the monitoring engine's configuration file:

    /etc/centreon-engine/centengine.cfg
  2. Add the following line:

    log_level_otl=trace

    The different log levels are: trace, debug, info, warning, error, critical, disabled.

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