Solved

Custom script doesn't work

  • 4 September 2023
  • 3 replies
  • 75 views

Badge +6

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

 

 

 

icon

Best answer by Laurent 4 September 2023, 11:40

View original

3 replies

Badge +6

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

Userlevel 6
Badge +18

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.

Badge +6

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

Thank you for your help.

 

Laurent

Reply