[Xymon] xymon-rclient.sh

Root, Paul T Paul.Root at CenturyLink.com
Thu Jul 31 16:19:32 CEST 2014


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 <kspringer at innovateteam.com<mailto:kspringer at innovateteam.com>> wrote:
I can enter ' ssh -i ~/.ssh/xymon-rclient root at freenas.mydomainname.com<mailto:root at freenas.mydomainname.com> 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 root at freenas.mydomainname.com<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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140731/d9cdf634/attachment.html>


More information about the Xymon mailing list