[Xymon] Hide usernam and password in http test

Chris Pretorius chrisp at lightstone.co.za
Fri Mar 19 08:57:53 CET 2021


I tried
$XYMON/etc/netrc and $XYMON/etc/.netrc

And xymon user homedir both netrc and .netrc

Also set chmod 600 to all the files

I found a different end point on the webserver (Windows, not IIS) that doesn’t require authentication that I can use in the test.
Seems to be doing the job.

Thanx everyone for your guidance, much appreciated.

From: Jeremy Laidman <jeremy at laidman.org>
Sent: Friday, 19 March 2021 08:12
To: Chris Pretorius <chrisp at lightstone.co.za>
Cc: Xymon Mailing List <xymon at xymon.com>
Subject: Re: [Xymon] Hide usernam and password in http test

The online manpage (probably the most up-to-date) says that the netrc file is in $XYMON/etc/netrc - note that there is no dot in the filename.

https://xymon.sourceforge.io/xymon/help/manpages/man1/xymonnet.1.html

On Thu, 18 Mar 2021 at 22:45, Chris Pretorius <chrisp at lightstone.co.za<mailto:chrisp at lightstone.co.za>> wrote:
Hi

Im running a xymon server installed from the Terabithia repository

Release: xymon-4.3.30-1

I added a http test that requires basic authentication. The password has special characters.

The test works when I add the username and password in the full url, ie. https://server/page.htm?user=User&password=p@sw0rd

The man pages mention a file ~/.netrc where you can store username and password for basic authentication

Which directory should the file be stored on the server.

Best regards



_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20210319/c0fbdc6a/attachment.htm>


More information about the Xymon mailing list