Hello, I’ve been trying to monitor a service (zookeeper) through ssh with a linux command and i encountered a bit of a problem, first of all i would like to know if it was correct to do as i’ve done :
and i get :
i don’t understand why it only print half of the command, everything after the “|” is ignored, i’ve ran the command manualy through ssh and it work (i get “imok”), and i would like to know how to customise this service test to get it to show critical on icingaweb when after the check it’s different of “imok” and ok when it’s “imok”.
i’ve tried to run a command by ckeck_by_ssh but i get an error :
./usr/lib64/nagios/plugins/check_by_ssh -v -i $HOME/.ssh/id_rsa -H email@example.com -C “ls”
check_by_ssh: Invalid hostname/address
i can log with ssh without password.
Thanks for reading