Xymon Mailing List Archive search

xymon 4.3.17 glitch - .netrc passwd not working for some https cont tests

list Jeremy Laidman
Mon, 1 Sep 2014 13:06:07 +1000
Message-Id: <user-a7d033e6bb26@xymon.invalid>

On 30 August 2014 07:35, Betsy Schwartz <user-c61747246f66@xymon.invalid> wrote:
Jeremy you were correct (as always) thank you !!
You're most welcome.

 the server was using /usr/local/xymon/.netrc and I was editing
/usr/local/xymon/server/etc/.netrc


What controls whether/which of these files is used?
Why the source code of course!  ;-)

And for the answer you really wanted, the source code (lib/url.c) tells me
that Xymon first looks in $XYMONHOME/etc/netrc (no dot) and uses that file.
 If there's no file there, or of Xymon failed to open the file (eg
permission denied), then it looks for it in $HOME/.netrc (leading dot).  If
still no file opened, Xymon gives up.

So on your system, this would be /usr/local/xymon/server/etc/netrc, then (I
think) /usr/local/xymon/.netrc.

J