[Xymon] Xymon Powershell Windows client
zak.beck at accenture.com
zak.beck at accenture.com
Mon Feb 16 11:08:57 CET 2015
Hi Lukas
The PS client does not support "localclient.cfg" in the manner described in
the comments on your config (and never has done even before my amendments).
I can't find documentation for localclient.cfg on xymon.com - I can see what
it's doing from your example, but we use hosts.cfg / analysis.cfg with raw
data sent back to the server.
Thanks
Zak
-----Original Message-----
From: lukas.kohl at ergodirekt.de [mailto:lukas.kohl at ergodirekt.de]
Sent: 16 February 2015 09:46
To: Beck, Zak
Cc: xymon at xymon.com
Subject: Re: RE: [Xymon] Xymon Powershell Windows client
Hello Zak,
please correct me if I am wrong, but I don't see a proper way to set these
settings local:
HOST=example-host
UP 10m
LOAD 80 100
PROC java 10 -1
PORT LOCAL=%[.:]2000[0-9]$ MIN=5 MAX=10 STATE=LISTENING
TRACK=ports
SVC XymonPSClient status=started startup=automatic
In contrast, here is a snippet of localclient.cfg, which is shipped with the
Linux client
(http://sourceforge.net/p/xymon/code/HEAD/tree/branches/4.3.17/client/localc
lient.cfg):
# localclient.cfg - configuration file for a LOCAL Xymon client.
#
# By default, Xymon clients send raw data to the Xymon server, # which in
turn converts the data into status messages.
# In that case, THIS FILE IS NOT USED and you should IGNORE it.
#
# If you want to configure clients locally (on the server that the # client
runs one), you do it here. You MUST also change the # clientlaunch.cfg file
and add the "--local" option to the # command launching xymonclient.sh # #
The file defines a series of rules:
# UP : Changes the "cpu" status when the system has rebooted
recently,
# or when it has been running for too long.
# LOAD : Changes the "cpu" status according to the system load.
# CLOCK : Changes the "cpu" status if the client system clock is
# not synchronized with the clock of the Xymon server.
# DISK : Changes the "disk" status, depending on the amount of space
# used of filesystems.
# MEMPHYS: Changes the "memory" status, based on the percentage of real
# memory used.
# MEMACT : Changes the "memory" status, based on the percentage of
"actual"
# memory used. Note: Not all systems report an "actual" value.
# MEMSWAP: Changes the "memory" status, based on the percentage of swap
# space used.
# PROC : Changes the "procs" status according to which processes were
found
# in the "ps" listing from the client.
# LOG : Changes the "msgs" status according to entries in text-based
logfiles.
# Note: The "client-local.cfg" file controls which logfiles the
client will report.
# FILE : Changes the "files" status according to meta-data for files.
# Note: The "client-local.cfg" file controls which files the
client will report.
# DIR : Changes the "files" status according to the size of a
directory.
# Note: The "client-local.cfg" file controls which directories
the client will report.
# PORT : Changes the "ports" status according to which tcp ports were
found
# in the "netstat" listing from the client.
# DEFAULT: Set the default values that apply if no other rules match.
...
Kind regards,
Lukas
-----Original Message-----
Hi Lukas
If you just want to use local config files and ignore any config returned by
the Xymon server, your xymonclient_config.xml will need to look like the
following:
<XymonSettings>
<!-- your Xymon server: -->
<servers>xymonserver.domain.com</servers>
<!-- where your local config file is: -->
<clientconfigfile>c:\program
files\xymon\clientconfig.cfg</clientconfigfile>
<!-- client remotecfgexec = 0 = ignore config from server -->
<clientremotecfgexec>0</clientremotecfgexec>
</XymonSettings>
You then setup the local config in the location specified as normal. The
directives you can use are listed in
http://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/XymonPSCli
ent.doc.
I use a similar setup for testing new features.
Thanks
Zak
-----Original Message-----
From: lukas.kohl at ergodirekt.de [mailto:lukas.kohl at ergodirekt.de]
Sent: 16 February 2015 09:08
To: Beck, Zak
Cc: xymon at xymon.com
Subject: [Xymon] Xymon Powershell Windows client
Hello Zak,
thank you a lot for your good work. The Script works pretty well, until now
everything went exactly as it should.
Our Xymon server is on Version 4.3.17, but our Windows Clients are still
using the old BBwin Binary. So they are configured local.
Is there any chance to have a localclient.cfg, which can be used by your
Powershell Script, like we have on the Linux Clients ?
Otherwise a migration to the new Client would be very painfull for us.
Kind regards,
Lukas Kohl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6831 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150216/2f01620b/attachment.bin>
More information about the Xymon
mailing list