<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">I've modified a few things but haven't
      gotten any successful results.  See below.<br>
      <br>
      My hosts.cfg.  I've tried (freebsd) and also (linux) with the same
      failed results.<br>
      <small>1.2.3.4  freenas.domain.com        # trace ssh
        "RCLIENT:cmd(ssh -T -i /home/xymon/.ssh/xymon-rclient
        root@%{H}),ostype(freebsd)"</small><br>
      <br>
      Log results.<br>
      <small>Thu Jul 31 07:58:23 PDT 2014: starting
        /usr/lib/xymon/server/ext/xymon-rclient.sh<br>
        Thu Jul 31 07:58:23 PDT 2014<br>
        Adding hosts from hosts.cfg<br>
        Server 1 freenas.domain.com(freebsd)<br>
        Command: ssh -T -i /home/xymon/.ssh/xymon-rclient
        <a class="moz-txt-link-abbreviated" href="mailto:root@freenas.domain.com">root@freenas.domain.com</a><br>
        Thu Jul 31 07:58:24 PDT 2014: Failed to collect data for
        freenas.domain.com<br>
        Thu Jul 31 07:58:24 PDT 2014: finished
        /usr/lib/xymon/server/ext/xymon-rclient.sh (completed 0 out of
        1)<br>
        Thu Jul 31 08:03:23 PDT 2014: starting
        /usr/lib/xymon/server/ext/xymon-rclient.sh<br>
        Thu Jul 31 08:03:23 PDT 2014<br>
        Adding hosts from hosts.cfg<br>
        Server 1 freenas.domain.com(linux)<br>
        Command: ssh -T -i /home/xymon/.ssh/xymon-rclient
        <a class="moz-txt-link-abbreviated" href="mailto:root@freenas.domain.com">root@freenas.domain.com</a><br>
        Thu Jul 31 08:03:24 PDT 2014: Failed to collect data for
        freenas.domain.com<br>
        Thu Jul 31 08:03:24 PDT 2014: finished
        /usr/lib/xymon/server/ext/xymon-rclient.sh (completed 0 out of
        1)</small><br>
      <br>
      <div class="moz-signature">
        <title>Signature - Kris</title>
        <meta content="text/html; charset=UTF-8"
          http-equiv="content-type">
        <style type="text/css">@import url('<a class="moz-txt-link-freetext" href="https://themes.googleusercontent.com/fonts/css?kit=wAPX1HepqA24RkYW1AuHYA">https://themes.googleusercontent.com/fonts/css?kit=wAPX1HepqA24RkYW1AuHYA</a>');ol{margin:0;padding:0}.c0{color:#990000;font-size:10pt;background-color:#ffffff;font-family:"Calibri";font-weight:bold}.c5{color:#990000;font-size:8pt;background-color:#ffffff;font-family:"Calibri"}.c1{color:#990000;font-size:10pt;background-color:#ffffff;font-family:"Calibri"}.c2{max-width:468pt;background-color:#ffffff;padding:72pt 72pt 72pt 72pt}.c4{text-decoration:underline}.c3{direction:ltr}.title{widows:2;padding-top:0pt;line-height:1.15;orphans:2;text-align:left;color:#000000;font-size:21pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}.subtitle{widows:2;padding-top:0pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-style:italic;font-size:13pt;font-family:"Trebuchet MS";padding-bottom:10pt;page-break-afte
r:avoid}li{color:#000000;font-size:11pt;font-family:"Arial"}p{color:#000000;font-size:11pt;margin:0;font-family:"Arial"}h1{widows:2;padding-top:10pt;line-height:1.15;orphans:2;text-align:left;color:#000000;font-size:16pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}h2{widows:2;padding-top:10pt;line-height:1.15;orphans:2;text-align:left;color:#000000;font-size:13pt;font-family:"Trebuchet MS";font-weight:bold;padding-bottom:0pt;page-break-after:avoid}h3{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-size:12pt;font-family:"Trebuchet MS";font-weight:bold;padding-bottom:0pt;page-break-after:avoid}h4{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-size:11pt;text-decoration:underline;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}h5{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-size:11pt;font-family:"Trebuchet MS";padding-botto
m:0pt;page-break-after:avoid}h6{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-style:italic;font-size:11pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}</style>
        I can enter the following at command line and get positive
        result without a password being requested from the client.<br>
        #<span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">su
          xymon<br>
          # ssh -T -i /home/xymon/.ssh/xymon-rclient <a
            moz-do-not-send="true"
            href="mailto:root@freenas.mydomainname.com">root@freenas.domain.com</a>
          uname -n</span><br>
        <br>
        <p class="c3"><span class="c1">Thank you.</span></p>
        <p class="c3"><span class="c1">------------------------------------------------</span></p>
        <p class="c3"><span class="c0">Kris Springer</span></p>
        <br>
        <br>
      </div>
      On 7/31/2014 7:19 AM, Root, Paul T wrote:<br>
    </div>
    <blockquote
cite="mid:C88055D0A02F174F848A984067ACC21C2F777F0C@podcwmbxex503.ctl.intranet"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Oh,
            I glossed right over that. If you aren’t going to use the
            default file name for the identity file, then you have to
            tell xymon to use that non-standard file as well. That
            doesn’t seem to be an option for the command. So you’d need
            to either change the command to take that as input, or make
            the filename the default.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <div style="border:none;border-top:solid #B5C4DF
          1.0pt;padding:3.0pt 0in 0in 0in">
          <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
              Xymon [<a class="moz-txt-link-freetext" href="mailto:xymon-bounces@xymon.com">mailto:xymon-bounces@xymon.com</a>]
              <b>On Behalf Of </b>Jeremy Laidman<br>
              <b>Sent:</b> Wednesday, July 30, 2014 9:45 PM<br>
              <b>To:</b> Kris Springer<br>
              <b>Cc:</b> Xymon MailingList<br>
              <b>Subject:</b> Re: [Xymon] xymon-rclient.sh<o:p></o:p></span></p>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <div>
            <div>
              <p class="MsoNormal">On 31 July 2014 06:27, Kris Springer
                <<a moz-do-not-send="true"
                  href="mailto:kspringer@innovateteam.com"
                  target="_blank">kspringer@innovateteam.com</a>>
                wrote:<o:p></o:p></p>
              <div>
                <div>
                  <p class="MsoNormal">I can enter ' <span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black">ssh
                      -i ~/.ssh/xymon-rclient <a moz-do-not-send="true"
                        href="mailto:root@freenas.mydomainname.com">root@freenas.mydomainname.com</a>
                      uname -n' from a command line on the xymon server
                      and it displays the hostname of the client
                    </span><o:p></o:p></p>
                </div>
              </div>
              <div>
                <p class="MsoNormal"> <o:p></o:p></p>
              </div>
              <div>
                <p class="MsoNormal">Good<o:p></o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <blockquote style="border:none;border-left:solid #CCCCCC
                1.0pt;padding:0in 0in 0in
                6.0pt;margin-left:4.8pt;margin-right:0in">
                <div>
                  <div>
                    <div>
                      <p class="MsoNormal">Here's what I have in my
                        hosts.cfg file.<br>
                        <span
style="font-size:8.5pt;font-family:"Arial","sans-serif";color:black">1.2.3.4
                           FreeNAS  # trace ssh
                          <a moz-do-not-send="true"
                            href="https://freenas.mydomainname.com"
                            target="_blank">https://freenas.mydomainname.com</a>
                          "RCLIENT:cmd(ssh -T root@<a
                            moz-do-not-send="true"
                            href="http://freenas.mydomainname.com"
                            target="_blank">freenas.mydomainname.com</a>),ostype(freebsd)"</span><o:p></o:p></p>
                    </div>
                  </div>
                </div>
              </blockquote>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal">I wonder if this is the problem.
                   By default, ssh will try to use a key file called
                  "identity", then it will try "id_rsa" and finally
                  "id_dsa" (all in the .ssh directory).  So to use a
                  different key file, you use "-i
                  <dirname/filename>" on the command-line.  If you
                  need to do this when you do the "uname -n" test, then
                  you probably also need to specify it in the cmd()
                  specification in hosts.cfg.<o:p></o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
              <div>
                <p class="MsoNormal">J<o:p></o:p></p>
              </div>
              <div>
                <p class="MsoNormal"><o:p> </o:p></p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>