<DIV>Did you create the ssh keys with the nagios user? <BR><BR><B><I>fmml@cedval.org</I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi all,<BR><BR>I want to monitor items on an AIX machine using check_by_ssh. I have<BR>created keys. From a shell, I su to nagios and run the following:<BR><BR>/usr/local/nagios/libexec/check_by_ssh -H sweet -C<BR>"/usr/local/nagios/libexec/check_load -w 70,60,50 -c 90,80,70"<BR><BR>OK - load average: 0.58, 0.27, 0.28<BR><BR>That works ok.<BR><BR>Configured my command.cfg as follows:<BR><BR>define command {<BR>command_name check_by_ssh<BR>command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C $ARG1$<BR>}<BR><BR><BR>Configured my service.cfg as follows:<BR><BR>define service {<BR>use generic-service<BR>host_name sweet<BR>service_description Cpu Load<BR>contact_groups testadmins<BR>check_period workhours<BR>notification_interval 120<BR>notification_options w,u,c,r<BR>notification_period 24x7<BR>check_command check_by_ssh!"/usr/local/nagios/libexec/check_load -w<BR>70,60,50 -c
90,80,70"<BR>max_check_attempts 3<BR>normal_check_interval 5<BR>retry_check_interval 1<BR>}<BR><BR>When nagios is doing that check, it returns "Host key verification failed"<BR><BR>Any ideas???<BR><BR><BR>Thanks in advance,<BR><BR>Francois<BR><BR><BR><BR><BR><BR>-------------------------------------------------------<BR>This SF.Net email sponsored by: ApacheCon 2003,<BR>16-19 November in Las Vegas. Learn firsthand the latest<BR>developments in Apache, PHP, Perl, XML, Java, MySQL,<BR>WebDAV, and more! http://www.apachecon.com/<BR>_______________________________________________<BR>Nagios-users mailing list<BR>Nagios-users@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<BR>::: Messages without supporting info will risk being sent to /dev/null</BLOCKQUOTE></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://antispam.yahoo.com/whatsnewfree">Protect your identity with Yahoo! Mail AddressGuard</a>