<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 15 (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:"Source Sans Pro";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
.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 lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Make sure it is 0600 readable by owner only.  If that is not it, maybe someone may have other advice.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Kevin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Chris Pretorius <chrisp@lightstone.co.za> <br>
<b>Sent:</b> Thursday, March 18, 2021 10:46 AM<br>
<b>To:</b> KING, KEVIN <KK1051@att.com>; Xymon Mailing List <xymon@xymon.com><br>
<b>Subject:</b> RE: Hide username and password in http test<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Xymon server runs as the xymon user, homedir is /usr/lib/xymon/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">I placed the file there (Perms are xymon:xymon) but still no go<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> KING, KEVIN <<a href="mailto:KK1051@att.com">KK1051@att.com</a>>
<br>
<b>Sent:</b> Thursday, 18 March 2021 14:54<br>
<b>To:</b> Chris Pretorius <<a href="mailto:chrisp@lightstone.co.za">chrisp@lightstone.co.za</a>>; Xymon Mailing List <<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>><br>
<b>Subject:</b> RE: Hide username and password in http test<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-ZA"><o:p> </o:p></span></p>
<p class="MsoNormal">I have not used this, but based on the other items and the writers of the platform, I would put this in the home directory of the user that is running the xymon application.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Kevin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Xymon <<span lang="EN-ZA"><a href="mailto:xymon-bounces@xymon.com"><span lang="EN-US">xymon-bounces@xymon.com</span></a></span>>
<b>On Behalf Of </b>Chris Pretorius<br>
<b>Sent:</b> Thursday, March 18, 2021 7:35 AM<br>
<b>To:</b> Xymon Mailing List <<span lang="EN-ZA"><a href="mailto:xymon@xymon.com"><span lang="EN-US">xymon@xymon.com</span></a></span>><br>
<b>Subject:</b> [Xymon] Hide usernam and password in http test<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif">Im running a xymon server installed from the Terabithia repository<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif">Release: xymon-4.3.30-1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif">I added a http test that requires basic authentication. The password has special characters.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif">The test works when I add the username and password in the full url, ie.
</span><span lang="EN-ZA"><a href="https://urldefense.com/v3/__https:/server/page.htm?user=User&password=p@sw0rd__;!!BhdT!374AslU01M-gavchN3GUGqP8XwfFNgqNoCReWupQ1GONsSAa_U5Dw_ifFODBWQ$"><span lang="EN-US" style="font-family:"Source Sans Pro",sans-serif">https://server/page.htm?user=User&password=p@sw0rd</span></a></span><span style="font-family:"Source Sans Pro",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif">The man pages mention a file ~/.netrc where you can store username and password for basic authentication<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif">Which directory should the file be stored on the server.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Source Sans Pro",sans-serif"><o:p> </o:p></span></p>
</div>
</body>
</html>