<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">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 <xymon-bounces@xymon.com> <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 <xymon@xymon.com><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.
<a href="https://urldefense.com/v3/__https:/server/page.htm?user=User&password=p@sw0rd__;!!BhdT!374AslU01M-gavchN3GUGqP8XwfFNgqNoCReWupQ1GONsSAa_U5Dw_ifFODBWQ$">
https://server/page.htm?user=User&password=p@sw0rd</a><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>