<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Well done!!  Adding the '/bin/bash' to
      the cmd line worked!  Results are flowing in and all is well. 
      Thanks for help.  Good job.  <span class="moz-smiley-s1"><span>
          :-) </span></span><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:avoi</style><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:21 PM, Jeremy Laidman wrote:<br>
    </div>
    <blockquote
cite="mid:CAAnki7DypHr6kk9NYpmcVFTP3pA=JBeQEwLkx2_P4Qk_9tUkNQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On 1 August 2014 10:45, Root, Paul T
            <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:Paul.Root@centurylink.com" target="_blank">Paul.Root@centurylink.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Yes.
              The xymon-rclient script scp’s the proper script from
              ~/client/bin to the client and runs it.</blockquote>
          </div>
          <br>
          Actually, that's not correct.  It uses "ssh" (or rsh, or
          whatever you want to give it) to run a shell, then pipes the
          contents of the xymonclient-freebsd.sh file into the pipe.
           Essentially like this:</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">$ cat
          /usr/lib/xymon/client/bin/xymonclient-freebsd.sh | ssh -T -i
          path/to/keyfile hostname</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">and the output is saved into a
          temporary file to be fed into $XYMON $XYMSRV "@", but prefixed
          with a "client" message header.</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">If you run that "cat ..." command
          manually it should give you client data as its output.  Try it
          and see.</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">
          If it works, then xymon-rclient should also work and might
          have a bug.  If this doesn't work, then we can reproduce the
          problem outside of xymon-rclient and it will be easier to work
          on.</div>
        <div class="gmail_extra">
          <br>
        </div>
        <div class="gmail_extra">I wonder if it's to do with the shell
          on the FreeNAS.  If it's a non-standard shell, you might need
          to force a shell in the ssh parameters, with something like:</div>
        <div class="gmail_extra">
          <br>
        </div>
        <div class="gmail_extra">cmd(ssh -T -i
          /home/xymon/.ssh/xymon-rclient root@%{H}
          /bin/bash),ostype(freebsd)<br>
        </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">J</div>
        <div class="gmail_extra"><br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>