Skip to main content

Hello all

 

Trying to create a simple check command based on SSH cmd-return mode (following

 )

I have created this simple check command :

 

/usr/lib/centreon/plugins/centreon_linux_ssh.pl --plugin=os::linux::local::plugin --hostname=$HOSTADDRESS$ --ssh-backend='libssh' --ssh-username='centreon-monitoring'  --ssh-priv-key='/var/lib/centreon-engine/.ssh/id_rsa'  --mode=cmd-return --exec-command=/usr/bin/true    --manage-returns='0,OK,OK#1,CRITICAL,KO#,UNKNOWN,Problem'

 

But command fails, log (connector-ssh.log) shows : “score] error] fail to parse cmd line /usr/lib/centreon/plugins/centreon_linux_ssh.pl <...> option '?' requires an argument

 

Any idea on the missing argument  ?

 

Thank you

 

 

Additional info, the command when run in SSH does not complain and returns correctly

 

# /usr/lib/centreon/plugins/centreon_linux_ssh.pl --plugin=os::linux::local::plugin --hostname=1.2.3.4 --ssh-backend='libssh' --ssh-username='centreon-monitoring'  --ssh-priv-key='/var/lib/centreon-engine/.ssh/id_rsa'  --mode=cmd-return --exec-command=/usr/bin/true    --manage-returns='0,OK,OK#1,CRITICAL,KO#,UNKNOWN,Problem'
OK: OK | 'command.exit.code.count'=0;;;;


Reply