Xymon Mailing List Archive search

xymon-rclient.sh

list Paul Root
Thu, 31 Jul 2014 14:19:32 +0000
Message-Id: <user-c4312fe7aeb6@xymon.invalid>

Oh, I glossed right over that. If you aren’t going to use the default file name for the identity file, then you have to tell xymon to use that non-standard file as well. That doesn’t seem to be an option for the command. So you’d need to either change the command to take that as input, or make the filename the default.

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Jeremy Laidman
Sent: Wednesday, July 30, 2014 9:45 PM
To: Kris Springer
Cc: Xymon MailingList
Subject: Re: [Xymon] xymon-rclient.sh

On 31 July 2014 06:27, Kris Springer <user-c2caa0a7a8d5@xymon.invalid<mailto:user-c2caa0a7a8d5@xymon.invalid>> wrote:
I can enter ' ssh -i ~/.ssh/xymon-rclient user-b217e4b1eaae@xymon.invalid<mailto:user-b217e4b1eaae@xymon.invalid> uname -n' from a command line on the xymon server and it displays the hostname of the client

Good

Here's what I have in my hosts.cfg file.
1.2.3.4  FreeNAS  # trace ssh https://freenas.mydomainname.com "RCLIENT:cmd(ssh -T user-b217e4b1eaae@xymon.invalid<http://freenas.mydomainname.com>;),ostype(freebsd)"

I wonder if this is the problem.  By default, ssh will try to use a key file called "identity", then it will try "id_rsa" and finally "id_dsa" (all in the .ssh directory).  So to use a different key file, you use "-i <dirname/filename>" on the command-line.  If you need to do this when you do the "uname -n" test, then you probably also need to specify it in the cmd() specification in hosts.cfg.

J