AIX 5.2 & 5.3 check_by_ssh problem


I’ve compilted check_by_ssh on both AIX 5.2 and AIX 5.3 and the compile works, when I test it I get:

/tmp/check_by_ssh2 -H XXXXX -C “uname -a” ; echo $?
Remote command execution failed:

But I can ssh:
ssh -q XXXXXX uname -a
AIX XXXXX 2 5 00C00E2F4C00

Since I don’t get a informational message after the colon “:” I’m at a bit of a loss on how to troubleshoot this. Any suggestions for getting the check_by_ssh plugin compiled and functional for AIX?


More information:

Version of check_by_ssh currently installed and working:
/usr/local/nagios/libexec/check_by_ssh -V
check_by_ssh (nagios-plugins 1.4) 1.35

New version I am compiling and trying to get working:
/usr/local/nagios/libexec2/check_by_ssh -V
check_by_ssh v1792 (nagios-plugins 1.4.11)

The older version treats the banner message from the ssh command as stdout and the new version treats it as stderr. Unfortunately I don’t have the older code to see what’s different.