Xymon Mailing List Archive search

xymon-rclient.sh

list Kris Springer
Tue, 09 Sep 2014 10:26:23 -0700
Message-Id: <user-28f22b7ffefe@xymon.invalid>

I'm not getting any log files from FreeNAS using the rclient.  The 
server website says "The client did not report any logfile data".  Any 
ideas?
Signature - Kris

Thank you.


Kris Springer


On 8/5/2014 10:39 PM, Jeremy Laidman wrote:
Great news. Thanks for the update.  I'll add FreeNAS to the 
compatibility list, with the shell caveat.

On 01/08/2014 4:02 PM, "Kris Springer" <user-c2caa0a7a8d5@xymon.invalid 
<mailto:user-c2caa0a7a8d5@xymon.invalid>> wrote:

    Well done!!  Adding the '/bin/bash' to the cmd line worked! 
    Results are flowing in and all is well.  Thanks for help.  Good
    job. :-)

    Thank you.


    Kris Springer


    On 7/31/2014 7:21 PM, Jeremy Laidman wrote:
    On 1 August 2014 10:45, Root, Paul T <user-76fdb6883669@xymon.invalid
    <mailto:user-76fdb6883669@xymon.invalid>> wrote:

        Yes. The xymon-rclient script scp’s the proper script from
        ~/client/bin to the client and runs it.


    Actually, that's not correct.  It uses "ssh" (or rsh, or whatever
    you want to give it) to run a shell, then pipes the contents of
    the xymonclient-freebsd.sh file into the pipe.  Essentially like
    this:

    $ cat /usr/lib/xymon/client/bin/xymonclient-freebsd.sh | ssh -T
    -i path/to/keyfile hostname

    and the output is saved into a temporary file to be fed into
    $XYMON $XYMSRV "@", but prefixed with a "client" message header.

    If you run that "cat ..." command manually it should give you
    client data as its output.  Try it and see.

    If it works, then xymon-rclient should also work and might have a
    bug.  If this doesn't work, then we can reproduce the problem
    outside of xymon-rclient and it will be easier to work on.

    I wonder if it's to do with the shell on the FreeNAS.  If it's a
    non-standard shell, you might need to force a shell in the ssh
    parameters, with something like:

    cmd(ssh -T -i /home/xymon/.ssh/xymon-rclient root@%{H}
    /bin/bash),ostype(freebsd)

    J