<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<title>Signature - Kris</title>
<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;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 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";
        color:black;}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:"Trebuchet MS","sans-serif";
        color:black;
        font-weight:bold;}
h2
        {mso-style-priority:9;
        mso-style-link:"Heading 2 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:"Trebuchet MS","sans-serif";
        color:black;
        font-weight:bold;}
h3
        {mso-style-priority:9;
        mso-style-link:"Heading 3 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        page-break-after:avoid;
        font-size:12.0pt;
        font-family:"Trebuchet MS","sans-serif";
        color:#666666;
        font-weight:bold;}
h4
        {mso-style-priority:9;
        mso-style-link:"Heading 4 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        page-break-after:avoid;
        font-size:11.0pt;
        font-family:"Trebuchet MS","sans-serif";
        color:#666666;
        font-weight:bold;
        text-decoration:underline;}
h5
        {mso-style-priority:9;
        mso-style-link:"Heading 5 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        page-break-after:avoid;
        font-size:11.0pt;
        font-family:"Trebuchet MS","sans-serif";
        color:#666666;
        font-weight:bold;}
h6
        {mso-style-priority:9;
        mso-style-link:"Heading 6 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        page-break-after:avoid;
        font-size:11.0pt;
        font-family:"Trebuchet MS","sans-serif";
        color:#666666;
        font-weight:bold;
        font-style:italic;}
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;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Arial","sans-serif";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Cambria","serif";
        color:#365F91;
        font-weight:bold;}
span.Heading2Char
        {mso-style-name:"Heading 2 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 2";
        font-family:"Cambria","serif";
        color:#4F81BD;
        font-weight:bold;}
span.Heading3Char
        {mso-style-name:"Heading 3 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 3";
        font-family:"Cambria","serif";
        color:#4F81BD;
        font-weight:bold;}
span.Heading4Char
        {mso-style-name:"Heading 4 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 4";
        font-family:"Cambria","serif";
        color:#4F81BD;
        font-weight:bold;
        font-style:italic;}
span.Heading5Char
        {mso-style-name:"Heading 5 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 5";
        font-family:"Cambria","serif";
        color:#243F60;}
span.Heading6Char
        {mso-style-name:"Heading 6 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 6";
        font-family:"Cambria","serif";
        color:#243F60;
        font-style:italic;}
p.c0, li.c0, div.c0
        {mso-style-name:c0;
        margin:0in;
        margin-bottom:.0001pt;
        background:white;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";
        color:#990000;
        font-weight:bold;}
p.c5, li.c5, div.c5
        {mso-style-name:c5;
        margin:0in;
        margin-bottom:.0001pt;
        background:white;
        font-size:8.0pt;
        font-family:"Calibri","sans-serif";
        color:#990000;}
p.c1, li.c1, div.c1
        {mso-style-name:c1;
        margin:0in;
        margin-bottom:.0001pt;
        background:white;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";
        color:#990000;}
p.c2, li.c2, div.c2
        {mso-style-name:c2;
        margin:0in;
        margin-bottom:.0001pt;
        background:white;
        font-size:11.0pt;
        font-family:"Arial","sans-serif";
        color:black;}
p.c4, li.c4, div.c4
        {mso-style-name:c4;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Arial","sans-serif";
        color:black;
        text-decoration:underline;}
p.c3, li.c3, div.c3
        {mso-style-name:c3;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Arial","sans-serif";
        color:black;}
p.title, li.title, div.title
        {mso-style-name:title;
        margin:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:21.0pt;
        font-family:"Trebuchet MS","sans-serif";
        color:black;}
p.subtitle, li.subtitle, div.subtitle
        {mso-style-name:subtitle;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:13.0pt;
        font-family:"Trebuchet MS","sans-serif";
        color:#666666;
        font-style:italic;}
span.c11
        {mso-style-name:c11;
        font-family:"Calibri","sans-serif";
        color:#990000;
        background:white;}
span.c01
        {mso-style-name:c01;
        font-family:"Calibri","sans-serif";
        color:#990000;
        background:white;
        font-weight:bold;}
span.EmailStyle34
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle35
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I believe FreeNas is based on FreeBSD. So that should be close.<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>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Can you provide the output of what  I sent yesterday? That is scping the freebsd client script and running it.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">That is going to provide the debugging info needed.<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>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">My guess is that the FreeBSD client script will need to be modified (and renamed) to work for FreeNas.<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>
<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";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Kris Springer [mailto:kspringer@innovateteam.com]
<br>
<b>Sent:</b> Thursday, July 31, 2014 10:18 AM<br>
<b>To:</b> Root, Paul T; Jeremy Laidman<br>
<b>Cc:</b> Xymon MailingList<br>
<b>Subject:</b> Re: [Xymon] xymon-rclient.sh<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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>
<span style="font-size:10.0pt">1.2.3.4  freenas.domain.com        # trace ssh "RCLIENT:cmd(ssh -T -i /home/xymon/.ssh/xymon-rclient root@%{H}),ostype(freebsd)"</span><br>
<br>
Log results.<br>
<span style="font-size:10.0pt">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 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 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)</span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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"">su xymon<br>
# ssh -T -i /home/xymon/.ssh/xymon-rclient <a href="mailto:root@freenas.mydomainname.com">
root@freenas.domain.com</a> uname -n</span><o:p></o:p></p>
<p class="c3"><span class="c11"><span style="font-size:10.0pt">Thank you.</span></span><o:p></o:p></p>
<p class="c3"><span class="c11"><span style="font-size:10.0pt">------------------------------------------------</span></span><o:p></o:p></p>
<p class="c3"><span class="c01"><span style="font-size:10.0pt">Kris Springer</span></span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
<p class="MsoNormal">On 7/31/2014 7:19 AM, Root, Paul T wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<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.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></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 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</span><o:p></o:p></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 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"">
ssh -i ~/.ssh/xymon-rclient <a 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-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<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"">1.2.3.4  FreeNAS  # trace ssh
<a href="https://freenas.mydomainname.com" target="_blank">https://freenas.mydomainname.com</a> "RCLIENT:cmd(ssh -T root@<a 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>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>