<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi.<div><br class="webkit-block-placeholder"></div><div>Many thx for the tip Marc - that did the trick! I had ekonomi.fb.se as the address in hosts.cfg i did also connect with only ekonomi and then it worked. Guess i missed something in my services or checkcommand-files but thats an easy fix now.</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>thx again!</div><div><br class="webkit-block-placeholder"></div><div>p</div><div><br><div><div>12 feb 2008 kl. 21.14 skrev <a href="mailto:nagios-users-request@lists.sourceforge.net">nagios-users-request@lists.sourceforge.net</a>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">Message: 18<br>Date: Tue, 12 Feb 2008 12:34:53 -0600<br>From: "Marc Powell" <<a href="mailto:marc@ena.com">marc@ena.com</a>><br>Subject: Re: [Nagios-users] check_by_ssh wont work - help.<br>To: <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>Message-ID: <<a href="mailto:A7B0A9F02975A74A845FE85D0B95B8FA099FEFA2@misex01.ena.com">A7B0A9F02975A74A845FE85D0B95B8FA099FEFA2@misex01.ena.com</a>><br>Content-Type: text/plain;<span class="Apple-tab-span" style="white-space: pre; ">  </span>charset="US-ASCII"<br><br><br><br><blockquote type="cite">-----Original Message-----<br></blockquote><blockquote type="cite">From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> [<a href="mailto:nagios-users-">mailto:nagios-users-</a><br></blockquote><blockquote type="cite"><a href="mailto:bounces@lists.sourceforge.net">bounces@lists.sourceforge.net</a>] On Behalf Of News<br></blockquote><blockquote type="cite">Sent: Tuesday, February 12, 2008 10:37 AM<br></blockquote><blockquote type="cite">To:<span class="Apple-converted-space"> </span><a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br></blockquote><blockquote type="cite">Subject: [Nagios-users] check_by_ssh wont work - help.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi all.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Im trying to get check_by_ssh to work but i keep failing. Its between<br></blockquote>two<br><blockquote type="cite">linux, Debian (nagiosserver) and redhat (cilent). Im trying something<br></blockquote><blockquote type="cite">simple at first, just check the disk.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have setup the keys so i can login without password (with user<br></blockquote>nagios).<br><blockquote type="cite">When i do a test with from terminal it goes well:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">/usr/local/nagios/libexec/check_by_ssh -H ekonomi.fb.se -C<br></blockquote><blockquote type="cite">'/usr/local/nagios/libexec/check_disk -w 75% -c 90% -p /var'<br></blockquote><blockquote type="cite"><br></blockquote><br><br><blockquote type="cite">UNKNOWN<span class="Apple-tab-span" style="white-space: pre; ">      </span>12-02-2008 17:32:57<span class="Apple-tab-span" style="white-space: pre; ">      </span>0d 0h 21m 53s<span class="Apple-tab-span" style="white-space: pre; ">    </span>3/3<span class="Apple-tab-span" style="white-space: pre; ">      </span>Remote<br></blockquote>command<br><blockquote type="cite">execution failed: Host key verification failed.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Im seem having problem with the aut-key. I have doublechecked the<br></blockquote>nagios-<br><blockquote type="cite">account but in cant see whats wrong. For it is nagios user that is<br></blockquote>doing<br><blockquote type="cite">the check right?<br></blockquote><br>Correct. In the host{} definition that this service check is applied to,<br>is the 'address' specified as 'ekonomi.fb.se'? If not, you'll need to<br>manually ssh to the IP/hostname used as the address in the host<br>definition to associate the host key with _that_ name or address.<br><br>--<br>Marc<br></span></blockquote></div><br></div></body></html>