Skip to main content

Hi,

I added centreon_linux_ssh plugin to be able to execute some shell scripts on remote servers.

 

I generated public/private ssh keys.

I copied the public key on my remote server.

I tested connection to the remote server without password and it’s works fine.

 

But how to use macros to execute my script ?

 

My script is based on remote server:

 

  • Remote server IP: 10.200.10.1
  • Path of the script: /usr/share/snmp/my-scripts/vmpro.sh

 

The script return the status of a running server (OK, CRITICAL or UNKNOWN.

 

Here is my service created:

 

 

Thank you for help

I have this error now:

 

 


Reply