Re: [Nagios-users] troubles with check_by_ssh
Nov 5 14:57:22 nagios nagios: Warning: Return code of 67 for check of service 'Check_ssh_load' on host 'host22' was out of bounds. I am getting the following error on a check_by_ssh command. It work fine from the command line. -bash-3.00$ ./check_by_ssh -l nagios -H host22 -C 'libexec/check_load -w 50 -c 75'OK - load average: 0.00, 0.00, 0.00|load1=0.00;50.00;75.00;0.00 load5=0.00;50.00;75.00;0.00 load15= 0.00;50.00;75.00;0.00-bash-3.00$ echo $?0 On 10/25/06, David Garvey <[EMAIL PROTECTED]> wrote: 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.00;50.00;75.00;0.00 load5= 0.00;50.00;75.00;0.00 load15=0.00;50.00;75.00;0.00You 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.' The ssh versions... host18 ssh2 -Vssh2: SSH Secure Shell 2.2.0 on i686-pc-linux-gnu nagios ssh -Vssh: SSH Secure Shell 3.2.9.1 on i686-pc-linux-gnu -- David Garveycell# 510-209-9012 - 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
Re: [Nagios-users] troubles with check_by_ssh
[EMAIL PROTECTED] wrote on 25/10/2006 23:30:19: [snip] > 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.' The log file is telling exactly what the problem is.. The ssh key exchange failed.. Fix the key exchange.. There's a problem with the private/public keys.. Maybe they don't exist on the remote server, or aren't set up right, or don't have the right permissions. With the commercial SSH package I'm using, it uses keys in the ~/.ssh2 folder.. It's not the same as OpenSSH, and the keys are in a different format. You should look up the documentation for SSH2 for your operating system and set up keynegotiation for the user that is connecting to host host18. You need key exchange to work before you can use the check_by_ssh plugin. There is good documentation for Commercial SSH, that's why you pay for it. rob This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. ** BNP Paribas Private Bank London Branch is authorised by CECEI & AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Securities Services London Branch is authorised by CECEI & AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Fund Services UK Limited is authorised and regulated by the Financial Services Authority - 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
Re: [Nagios-users] troubles with check_by_ssh
On Oct 25, 2006, at 6:30 PM, David Garvey wrote: > > 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. Sounds like it wants to echo a message to the tty, but can't. Have you tried "su - nagios" (or whatever user nagios is running under) and then ssh'ing to the machine in question? I'd imagine you'll get a message asking whether to trust that host, which may be what is throwing a wrench in the works for you. -- Kurt Yoder The Richard Group - 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
[Nagios-users] troubles with check_by_ssh
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.00;50.00;75.00;0.00 load5= 0.00;50.00;75.00;0.00 load15=0.00;50.00;75.00;0.00You 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.' The ssh versions... host18 ssh2 -Vssh2: SSH Secure Shell 2.2.0 on i686-pc-linux-gnu nagios ssh -Vssh: SSH Secure Shell 3.2.9.1 on i686-pc-linux-gnu - 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