check_by_ssh not working

I’m running nagios 3.0 and nagios plugins 1.4.11 on sparc solaris 10.

I’m trying to check services on a remote host using check_by_ssh. So far I’ve been able to setup ssh without a password and can ssh to the remote host from the command line fine.

However, when I try to run the check_by_ssh I receive the following:

$ /usr/local/nagios/libexec/check_by_ssh -l nagios -H corpdev -C /usr/local/nagios/libexec/check_load -w 7,7,7 -c 10,10,10
Remote command execution failed:

I’m getting no clues back so I was wondering if anyone knows where I could look in order to find out, or if there is a config error or something???

Do you have a banner configured for SSH? If so, use a -E X where X is the number of lines the banner puts out.

Problem solved…cheers!!!