On 30 August 2014 07:35, Betsy Schwartz <betsy.schwartz at gmail.com> 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