Xymon Mailing List Archive search

rclient issues on Centos8 and rocky linux

2 messages in this thread

list Michael Resnick · Sun, 3 Jul 2022 12:18:01 +0000 (UTC) ·
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.101tick 1/60/bin/sh: line 113: syntax error near unexpected token `)'/bin/sh: line 113: `)'tick 2/60... tick 60/60command timed out after 60 secondsUID? ? ? ? ? PID? ? PPID? C STIME TTY? ? ? ? ? TIME CMDxymon? ? 2206085 2205824? 0 14:57 ?? ? ? ? 00:00:00 sed 1,/---START---/d;$a[endmarker]\ndummy entryReceived 486 lines of client data
and 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.shor the?xymonclient-linux.sh ( has only 102 lines )?
using latest xymon server from rpms on centos8.
Any suggestions appreciated.
Michael Resnick
list Jeremy Laidman · Mon, 4 Jul 2022 01:04:58 +1000 ·
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 <user-7fba2d5d51fe@xymon.invalid>
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
quoted from Michael Resnick
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 data
quoted from Michael Resnick

and 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 )
quoted from Michael Resnick

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