Skip to main content
Solved

Custom script doesn't work

  • September 4, 2023
  • 3 replies
  • 136 views

Forum|alt.badge.img+10

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

 

 

 

Best answer by lpinsivy

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.

3 replies

Forum|alt.badge.img+10
  • Author
  • Builder *
  • September 4, 2023

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


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • Answer
  • September 4, 2023

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.


Forum|alt.badge.img+10
  • Author
  • Builder *
  • September 6, 2023

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

Thank you for your help.

 

Laurent