I am have problems using the most recent libraries of ssh2 the commerial version. Here is the error when nagios runs the plug-in.
Remote command execution failed: warning: You have no controlling tty. Cannot read confirmation.
Here is the command line execution...
-bash-3.00$ libexec/check_by_ssh -H host18 -t 30 -S 25 -C "libexec/check_load -w 50 -c 75"
OK - load average: 0.00, 0.00, 0.00|load1=0.000000;50.000000;75.000000;0.000000 load5= 0.000000;50.000000;75.000000;0.000000 load15=0.000000;50.000000;75.000000;0.000000
You have new mail in /var/spool/mail/nagios
-bash-3.00$ libexec/check_by_ssh -H host18 -t 30 -S 25 -C "libexec/check_load -w 50 -c 75"
OK - load average: 0.00, 0.00, 0.00|load1=0.000000;50.000000;75.000000;0.000000 load5= 0.000000;50.000000;75.000000;0.000000 load15=0.000000;50.000000;75.000000;0.000000
You have new mail in /var/spool/mail/nagios
Here is the /var/log/messages on host18...
Oct 25 15:10:10 host18 sshd2[870]: connection from "10.1.1.1"
Oct 25 15:10:10 host18 sshd2[13080]: DNS lookup failed for "10.1.1.1".
Oct 25 15:10:10 host18 sshd2[13080]: Remote host disconnected: Key exchange failed.
Oct 25 15:10:10 host18 sshd2[13080]: Key exchange failed in remote: 'Key exchange failed.'
Oct 25 15:10:10 host18 sshd2[13080]: DNS lookup failed for "10.1.1.1".
Oct 25 15:10:10 host18 sshd2[13080]: Remote host disconnected: Key exchange failed.
Oct 25 15:10:10 host18 sshd2[13080]: Key exchange failed in remote: 'Key exchange failed.'
The ssh versions...
host18
ssh2 -V
ssh2: SSH Secure Shell 2.2.0 on i686-pc-linux-gnu
ssh2: SSH Secure Shell 2.2.0 on i686-pc-linux-gnu
nagios
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null