Skip to main content
Hello,
 
If an host don’t have an Alias , Centreon is unable to generate the Poller config :
Preparing environment... OK 
Generating files... NOK (Exception received : Host::alias] The string is empty, but non empty string was expected efile: /usr/share/centreon/src/Centreon/Domain/Common/Assertion/AssertionException.php] pline: 367] )

centreon-web-24.10.12

Connection flow : Poller → Agent

 

Regards

Hi ​@benoitp , are we sure that this is a CMA related issue, and not an invalid data in one of the hosts ? 

could you try : 

  • first test : delete Agent configuration (or put it temporary on another poller) and generate configuration on the initial poller
  • second test : create the same Agent configuration on another Poller ang generate configuration

can you also join a screenshot of your agent configuration, or the otl_server.json file (with fake IP/DNS of course) ? 

thanks


Hello,

It’s a test server, everything on it (cbd, engine, web ui,….) trying to monitor himself via CMA.

The server is a totally fresh install of  24.10.12 on RH 9, I follow this doc to setup a connection Poller → Agent  : https://docs.centreon.com/pp/integrations/plugin-packs/getting-started/how-to-guides/cma/cma-setup/

 

Test 1 :

  * Agent configuration deleted → Poller config generation OK.

Test 2

  * Re-add the Agent configuration → Poller config generation OK.

 

Well, be magic it’s working now, as the only things I have done are

  * removed the host’s alias I added previously to get it working

  * destroyed the agent configuration and add it again.

 

UI conf :

 

Files :

$ cat /etc/centreon-monitoring-agent/centagent.json
{
"log_file":"/var/log/centreon-monitoring-agent/centagent.log",
"log_level":"info",
"log_type":"file",
"log_max_file_size":10,
"log_max_files":3,
"endpoint":"0.0.0.0:4317",
"encryption":false,
"public_cert":"",
"private_key":"",
"ca_certificate":"",
"ca_name":"",
"host":"localhost",
"reversed_grpc_streaming":true
}
 $ cat /etc/centreon-engine/otl_server.json
{
"otel_server": {
"host": "0.0.0.0",
"port": 4317,
"encryption": false,
"public_cert": "",
"private_key": "",
"ca_certificate": "",
"trusted_tokens": b]
},
"centreon_agent": {
"check_interval": 60,
"export_period": 60,
"reverse_connections":
{
"host": "127.0.0.1",
"port": 4317,
"encryption": false,
"ca_certificate": "",
"ca_name": null,
"token": null
}
]
}

 


Thanks.

There i a known issue in No TLS for poller-initiated connection, maybe it’s related. 

I will try to reproduce the issue on my side.


We reproduced the issue.It will be fixed as soon as possible.