<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=us-ascii">
<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]-->
</head>
<body 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">It could be a matter of a Linux sed (gnu) verses the Solaris (SysV) sed command. You might a gnu sed package.<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:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Paul Root    - Senior Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Managed Services Systems - CenturyLink<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"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<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"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> xymon-bounces@xymon.com [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Kevin King<br>
<b>Sent:</b> Thursday, September 27, 2012 10:47 AM<br>
<b>To:</b> Ryan Novosielski<br>
<b>Cc:</b> xymon@xymon.com<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>
<p class="MsoNormal">Ryan, I am going to do that next. I did that the first time and it helped me figure out the shell needed to be bash rather than sh. The script writer has some good debugging in the code and I was setting his debug options.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">When I look on the remote client it did start the vmstat and create the tempfile output.<o:p></o:p></p>
<div>
<p class="MsoNormal">I think the sed might be barfing on some output from the remote host at login.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">-Kevin<o:p></o:p></p>
<div>
<p class="MsoNormal">On Thu, Sep 27, 2012 at 11:20 AM, Ryan Novosielski <<a href="mailto:novosirj@umdnj.edu" target="_blank">novosirj@umdnj.edu</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Do set -x or change the top line to read #!/bin/whatever -x -- adding<br>
in the -x. That will tell you like by line what is happening and show<br>
you which test is failing. Likely a variable isn't defined somewhere.<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
On 09/27/2012 09:42 AM, Kevin King wrote:<br>
> I am trying to get your script  (xymon-rclient.sh) running on my<br>
> xymon and have hit some issue that must have something to do with<br>
> my environment.<br>
><br>
> Wednesday, September 26, 2012 03:25:55 PM CDT: starting<br>
> //usr/local/xymon/server/ext/xymon-rclient.sh<br>
> //usr/local/xymon/server/ext/xymon-rclient.sh: trap: bad trap<br>
> Wednesday, September 26, 2012 03:25:55 PM CDT: finished<br>
> //usr/local/xymon/server/ext/xymon-rclient.sh (completed 0 out of<br>
> 0)<br>
><br>
> I have ssh keys all setup and I can ssh to the client no problem.<br>
> So I set the debug option them get this:<br>
><br>
> //usr/local/xymon/server/ext/xymon-rclient.sh: test: argument<br>
> expected<br>
><br>
><br>
><br>
> the xymon server is solaris 10. and I am running xymon 4.3.10<br>
><br>
> -Kevin<br>
><br>
><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">> _______________________________________________ Xymon mailing list<br>
> <a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a> <a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">
http://lists.xymon.com/mailman/listinfo/xymon</a><br>
><br>
<br>
<o:p></o:p></p>
</div>
<p class="MsoNormal">- --<br>
- ---- _  _ _  _ ___  _  _  _<br>
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer<br>
|$&| |__| |  | |__/ | \| _| |<a href="mailto:novosirj@umdnj.edu">novosirj@umdnj.edu</a> -
<a href="tel:973%2F972.0922">973/972.0922</a> (2-0922)<br>
\__/ Univ. of Med. and Dent.|IST/EI-Academic Svcs. - ADMC 450, Newark<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://www.enigmail.net/" target="_blank">
http://www.enigmail.net/</a><br>
<br>
iEYEARECAAYFAlBkbsgACgkQmb+gadEcsb722wCdHWEJgkPHlUH4CBPH261+PKwq<br>
9oIAoKR7Qa9cD9fnmXLLYoWtoyMc/Aj/<br>
=lfmu<br>
-----END PGP SIGNATURE-----<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>