Skip to main content

Hello the community,

 

I try to execute a custom script  but It seems I miss something.

 

I have a poller on an ec2 instance on AWS. I try to execute a probe Python script on a Linux server on another ec2 instance. this server is attached to the poller in AWS.

The script is located on server (not on the poller)

Locally, the script works fine.

But via Centreon, I have “(Execute command failed)”

 

Other non-custom probes are working well.

 

Can you help me to understand?

 

Regards,

 

Laurent

 

 

 

ok, I think I can do what I want via the plugin “check_by_ssh”.

 

But where can I download it? In which plugin-pack is it?

 

Laurent


Hi @LaurentV, if you try to execute a script directly on a remote server, you need to install an agent like NRPE, configure it to execute your custom script, then create a command using check_nrpe to ask to the agent to execute your script.


Thanks, effectively, I installed NRPE agent and I can do what I want.

Thank you for your help.

 

Laurent


Reply