Hi Grant
The log monitoring only requires the logfetch binary, which does three things: fetch the logs since the last time (and keep track of log file position), fetch file/dir status (permissions, ownership, hash if configured), and get the date and time of the client. You don't need xymonlaunch for monitoring logs. Although, if running in central mode, you do need to capture the output of the xymon command that sends the client data message to the server, and save it to a file, because that's the config file for logfetch.
I re-implemented the logfetch behaviour in my xymon-rcient.sh script (see Xymonton), consisting of about 3 functions and a bit of wrapper code, so it's possible to do without the binary if that option seems useful.
Alternatives for xymonlaunch are:
- run xymonclient.sh from cron (perhaps via flock, or similar behaviour to ensure you don't ever get a backlog of client instantiations consuming system resources)
- run via ssh from Xymon server to client, like:
TMP=mktemp; echo "$MACHINE.$OSTYPE" > "$TMP" && ssh $MACHINE
~xymon/client/bin/xymonclient.sh && $XYMON 127.1 @ < "$TMP" >/dev/null; rm
-f "$TMP"
(untested; also could do with flock or similar)
This can be run from a script launched by xymonlaunch on the Xymon server, rather than requiring a launcher on the client.
Cheers Jeremy
On Sun, 2 Jun 2024 at 09:05, Grant Taylor via Xymon <xymon at xymon.com> wrote:
---------- Forwarded message ---------- From: Grant Taylor <gtaylor at tnetconsulting.net> To: Xymon discuss <xymon at xymon.com> Cc: Bcc: Date: Sat, 1 Jun 2024 17:55:09 -0500 Subject: Cross compilation Hi,
Will someone please give me pointers for how I can cross compile Xymon client?
I've got some old AIX 5.3 systems that I'm using a hack to run the xymonclient-aix.sh (from memory) and piping that into a script that prefixes it with a header and connects to port 1984 of the Xymon server.
I'd like to some client version of Xymon or older Hobbit compiled for AIX 5.3.
I'm mostly after the xymonlaunch / hobbitlaunch binary for AIX 5.3. I think the bulk of the data comes from the xymonclient-aix.sh script. But I'd like to start leveraging log file monitoring, which seems to need the *launch binary.
Thank you and have a good day.
-- Grant. . . .
---------- Forwarded message ---------- From: Grant Taylor via Xymon <xymon at xymon.com> To: Xymon discuss <xymon at xymon.com> Cc: Bcc: Date: Sat, 1 Jun 2024 17:55:09 -0500 Subject: [Xymon] Cross compilation
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
On 6/2/24 18:11, Jeremy Laidman wrote:
Hi Grant
Hi Jeremy,
Thank you for your reply.
The log monitoring only requires the logfetch binary, which does three things: fetch the logs since the last time (and keep track of log file position), fetch file/dir status (permissions, ownership, hash if configured), and get the date and time of the client. You don't need xymonlaunch for monitoring logs.
Thank you for clarifying.
I hadn't noticed the lack of date and time.
Although, if running in central mode, you do need to capture the output of the xymon command that sends the client data message to the server, and save it to a file, because that's the config file for logfetch.
Please elaborate.
I re-implemented the logfetch behaviour in my xymon-rcient.sh script (see Xymonton), consisting of about 3 functions and a bit of wrapper code, so it's possible to do without the binary if that option seems useful.
I'll have to check that out.
Alternatives for xymonlaunch are:
- run xymonclient.sh from cron (perhaps via flock, or similar behaviour to ensure you don't ever get a backlog of client instantiations consuming system resources)
That's what I'm doing currently.
- run via ssh from Xymon server to client, like:
TMP=
mktemp; echo "$MACHINE.$OSTYPE" > "$TMP" && ssh $MACHINE ~xymon/client/bin/xymonclient.sh && $XYMON 127.1?@ < "$TMP" >/dev/null; rm -f "$TMP"
That's largely a non-starter for my particular environment for multiple reasons.
(untested; also could do with flock or similar)
;-)
The logic makes sense to me.
This can be run from a script launched by xymonlaunch on the Xymon server, rather than requiring a launcher on the client.
So ...
Will someone please give me pointers for how I can cross compile Xymon client^W logfetch binary?
-- Grant. . . .
participants (2)
-
gtaylor@tnetconsulting.net
-
jeremy@laidman.org