Skip to main content

I'm monitoring a Windows client using Centreon Monitoring Agent (CMA) with TLS certificates. The agent has loaded the certificates successfully, and the Linux-based poller connects via port 4317.

I believe the certificate setup is correct (client cert, key, and CA), but host and service checks are failing with errors like:

Error: Host check command execution failed: could not create process 'cmd.exe': No such file or directory Error: Service check command execution failed: could not create process '{check:memory,': No such file or directory Error: Service check command execution failed: could not create process '{check:cpu_percentage,': No such file or directory Error: Service check command execution failed: could not create process 'C:Program FilesCentreonPlugins/centreon_plugins.exe': No such file or directory Error: Service check command execution failed: could not create process '{check:health,': No such file or directory Error: Service check command execution failed: could not create process '{check:service,': No such file or directory Error: Service check command execution failed: could not create process '{check:uptime,': No such file or directory

It looks like Centreon is either:

  • Trying to execute Windows-specific commands on the Linux poller

  • Misinterpreting check definitions or plugin paths (e.g., Windows-style paths or JSON-like parameters)

My questions:

  1. Are these errors due to incorrect check command definitions or misconfigured templates?

  2. What is the correct way to define service checks for a Windows CMA client (over TLS) when using a Linux poller?

  3. Is there an official or working example for this kind of setup?

Any advice or shared experience would be very helpful.

Thanks!

Hi, thanks for your interest in Centreon Monitoring Agent.

 

Did you followed this documentation to configure the platform, poller and Agent ? 

Could you provide your Centreon & Agent version ?

 


Hello fmattes, 

 

my centreon version is : v. 24.10.7

and the agent version i tried to use is : centreon-monitoring-agent-25.01.0

 

I assume that these are the latest versions and therefore the possibilities for success are already given.

I also followed the documentation but I don't understand what the certificates are all about. Where do I create them and especially how?

 

I also don't understand which certificates I should create and which I should transfer to the clients. I would have liked to see this in the documentation.


Thanks for your answer.

Yes, it should work, and we're going to make sure that it does.

Could you check your Host “CENTREONAGENTPLUGINS” and “SYSTEMLANGUAGE” macros values ?

It should be 

  • CENTREONAGENTPLUGINS : C:/Program Files/Centreon/Plugins
  • SYSTEMLANGUAGE : en or fr, depending on your Host OS language

This is the current situation,the client os is installed in german. 

The CMA client is also installed onto this client but unable to start somehow. 


I can see in services.msc that centreon monitoring instantly “Crashes” or closes after i start it. 

 


About certificates,

 

On Poller, files must be dropped (.crt/.key) in /etc/pki/ with the following rights : 

chmod 644 /etc/pki/agent*

 

On Host, files must be dropped anywhere you want, and path specified in installer

 

You can generate an autosigned certificate on your Poller with the following command : 

openssl req -new -newkey rsa:2048 -days 365 -nodes -x509  -keyout /etc/pki/agent.key -out /etc/pki/agent.crt -subj '/CN=poller'

Then put the CN (in this example : ‘poller’) as Host IP in Agent configuration, on Host.

 

About which files to drop where, it depends which connection mode you are using “Connection initiated by Agent or by Poller”, and if you are using autosigned or signed certifcates.

 

Details are provided in this part of the documentation.

 

If not clear enough, let me know what is missing, and if needed we will plan a meet to solve your issue.

 


I can see in services.msc that centreon monitoring instantly “Crashes” or closes after i start it. 

 

I send you a private message to plan a meet


Reply