<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 30 August 2014 07:35, Betsy Schwartz <span dir="ltr"><<a href="mailto:betsy.schwartz@gmail.com" target="_blank">betsy.schwartz@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Jeremy you were correct (as always) thank you !!<br></div></div></blockquote><div><br></div><div>You're most welcome.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> the server was using /usr/local/xymon/.netrc and I was editing /usr/local/xymon/server/etc/.netrc<br>

<br><br>What controls whether/which of these files is used? <br></div></div></blockquote><div><br></div><div>Why the source code of course!  ;-)</div><div><br></div><div>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.</div>

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