check_by_ssh not working


Here’s the scenario:

user John can connect via ssh to SONICSERVER using oracle user without authentication. To verify, i run this command and encountered no problem:

ssh -i /home/John/.ssh/id_rsa [email protected] w

and the commands run properly.

But when i tried this command:

[[email protected] ~]$ /usr/local/nagios/libexec/check_by_ssh -H SONICSERVER -i /home/John/.ssh/id_rsa
-C “/usr/local/nagios/libexec/check_disk -w 10% -c 5% -e -m” -l oracle

It says:

CRITICAL - Plugin timed out while executing system call

Is there something wrong in the command??? Plugins was own by nagios but i set permission that others can execute it as well.