rclient issues on Centos8 and rocky linux
Michael
It's referring to line 113 of the combined script that gets sent to the client. This is composed of the original xymonclient-<os>.sh script, plus any rlocal scripts, plus some wrapper scripting.
If you manually run xymon-rclient with the -Y switch, it will dump the combined script to the terminal. This might give you what you need to find the offending line. Perhaps the best thing to do would be to capture the output into a file and then manually run the file on the target host, debugging it outside of the constraints of the rclient environment.
The rclient script hasn't been updated in a while and hasn't been widely tested with newer versions of OSes. But I'm keen to update it, if we can find what the trouble is. To be honest, rclient was always a bit of a hack, and I continue to be surprised at how well it works for so many different installations.
Cheers Jeremy
On Sun, 3 July 2022, 22:48 Michael Resnick via Xymon, <xymon at xymon.com> wrote:
---------- Forwarded message ---------- From: Michael Resnick <sys1002 at yahoo.com> To: "xymon at xymon.com" <xymon at xymon.com> Cc: Bcc: Date: Sun, 3 Jul 2022 12:18:01 +0000 (UTC) Subject: rclient issues on Centos8 and rocky linux I am a long time user of xymon, and this is the first issue I have been unable to resolve with rclient.
I have a one way DMZ, and I am using rclient to to monitor some linux servers on it.
I am getting this in the xymon-rclient.log for centos 8 ( stream ) and rocky linux latest: using -d 5 in tasks.cfg for debugging
Command: ssh -T root at 10.0.198.101 tick 1/60 /bin/sh: line 113: syntax error near unexpected token
)' /bin/sh: line 113:)' tick 2/60 ... tick 60/60 command timed out after 60 seconds UID PID PPID C STIME TTY TIME CMD xymon 2206085 2205824 0 14:57 ? 00:00:00 sed 1,/---START---/d;$a[endmarker]\ndummy entry Received 486 lines of client dataand then I can see the client data.
I tested on ubuntu 18.04 and it works fine.
I do not see anything relevant on line 113 of either the xymon-rclient.sh or the xymonclient-linux.sh ( has only 102 lines )
using latest xymon server from rpms on centos8.
Any suggestions appreciated.
Michael Resnick
---------- Forwarded message ---------- From: Michael Resnick via Xymon <xymon at xymon.com> To: "xymon at xymon.com" <xymon at xymon.com> Cc: Bcc: Date: Sun, 3 Jul 2022 12:18:01 +0000 (UTC) Subject: [Xymon] rclient issues on Centos8 and rocky linux
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (1)
-
jeremy@laidman.org