[Xymon] xymon-rclient.sh

Kris Springer kspringer at innovateteam.com
Thu Jul 31 17:47:34 CEST 2014


Xymon server is Ubuntu and Scp is not installed.  Could that have 
something to do with my problems?
Signature - Kris

Thank you.

------------------------------------------------

Kris Springer



On 7/31/2014 8:29 AM, Root, Paul T wrote:
> Signature - Kris
>
> I believe FreeNas is based on FreeBSD. So that should be close.
>
> Can you provide the output of what  I sent yesterday? That is scping 
> the freebsd client script and running it.
>
> That is going to provide the debugging info needed.
>
> My guess is that the FreeBSD client script will need to be modified 
> (and renamed) to work for FreeNas.
>
> *From:*Kris Springer [mailto:kspringer at innovateteam.com]
> *Sent:* Thursday, July 31, 2014 10:18 AM
> *To:* Root, Paul T; Jeremy Laidman
> *Cc:* Xymon MailingList
> *Subject:* Re: [Xymon] xymon-rclient.sh
>
> I've modified a few things but haven't gotten any successful results.  
> See below.
>
> My hosts.cfg.  I've tried (freebsd) and also (linux) with the same 
> failed results.
> 1.2.3.4 freenas.domain.com        # trace ssh "RCLIENT:cmd(ssh -T -i 
> /home/xymon/.ssh/xymon-rclient root@%{H}),ostype(freebsd)"
>
> Log results.
> Thu Jul 31 07:58:23 PDT 2014: starting 
> /usr/lib/xymon/server/ext/xymon-rclient.sh
> Thu Jul 31 07:58:23 PDT 2014
> Adding hosts from hosts.cfg
> Server 1 freenas.domain.com(freebsd)
> Command: ssh -T -i /home/xymon/.ssh/xymon-rclient 
> root at freenas.domain.com <mailto:root at freenas.domain.com>
> Thu Jul 31 07:58:24 PDT 2014: Failed to collect data for 
> freenas.domain.com
> Thu Jul 31 07:58:24 PDT 2014: finished 
> /usr/lib/xymon/server/ext/xymon-rclient.sh (completed 0 out of 1)
> Thu Jul 31 08:03:23 PDT 2014: starting 
> /usr/lib/xymon/server/ext/xymon-rclient.sh
> Thu Jul 31 08:03:23 PDT 2014
> Adding hosts from hosts.cfg
> Server 1 freenas.domain.com(linux)
> Command: ssh -T -i /home/xymon/.ssh/xymon-rclient 
> root at freenas.domain.com <mailto:root at freenas.domain.com>
> Thu Jul 31 08:03:24 PDT 2014: Failed to collect data for 
> freenas.domain.com
> Thu Jul 31 08:03:24 PDT 2014: finished 
> /usr/lib/xymon/server/ext/xymon-rclient.sh (completed 0 out of 1)
>
> I can enter the following at command line and get positive result 
> without a password being requested from the client.
> #su xymon
> # ssh -T -i /home/xymon/.ssh/xymon-rclient root at freenas.domain.com 
> <mailto:root at freenas.mydomainname.com> uname -n
>
> Thank you.
>
> ------------------------------------------------
>
> Kris Springer
>
> On 7/31/2014 7:19 AM, Root, Paul T wrote:
>
>     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/bf7b0c49/attachment.html>


More information about the Xymon mailing list