Xymon Mailing List Archive search

PS Client in "local mode"?

4 messages in this thread

list John Thurston · Fri, 28 May 2021 10:08:49 -0800 ·
The old BB and Xymon clients for Windows rely on ancient libraries, so I'm looking at my options. It appears to me that the Powershell client is the only thing out there.

Is there the correct location for the most recent?
   https://github.com/svn2github/xymon

And can anyone tell me if it can be run in "local config mode", wherein the evaluation of red/green occurs on the host (rather than the server)?


--
Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
list Timothy Williams · Fri, 28 May 2021 14:24:29 -0400 ·
https://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/ is the
location of the latest client, with some config examples.
All Red/yellow/green analysis is done on the server, however there can be
instances where you run a local script and pass the red/green back in the
package to server. The local-config can be stored on the host, which makes
it harder to centralize/standardize, or is downloaded each cycle and read
into cache.

*Tim*


*Timothy L. Williams*Windows Server
*Operating Systems Analyst*

On Fri, May 28, 2021 at 2:09 PM John Thurston <user-ce4d79d99bab@xymon.invalid>
quoted from John Thurston
wrote:
The old BB and Xymon clients for Windows rely on ancient libraries, so
I'm looking at my options. It appears to me that the Powershell client
is the only thing out there.

Is there the correct location for the most recent?
   https://github.com/svn2github/xymon

And can anyone tell me if it can be run in "local config mode", wherein
the evaluation of red/green occurs on the host (rather than the server)?


--
Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska

list John Thurston · Fri, 28 May 2021 11:02:49 -0800 ·
On 5/28/2021 10:24 AM, Timothy Williams wrote:
- snip -
quoted from Timothy Williams
All Red/yellow/green analysis is done on the server, however there can be instances where you run a local script and pass the red/green back in the package to server. 
The local-config can be stored on the host, which makes it harder to centralize/standardize, or is downloaded each cycle and read into cache.
If I'm reading the XymonPSCleint.doc correctly, then:

'clientconfigfile' is a file containing "config directives"

'clientremotecfgexec' may say "don't clobber the local file with stuff taken from the Xymon server"

But that's all I get. There is no provision for a local analysis.cfg, hence xymonclient.ps1 creates only messages of the type 'client', and never of the type 'status'. (I'm looking at lines 4223-4230 of the .ps1).

Well, shoot. That's unfortunate.

Thanks for the pointer, Tim.
quoted from Timothy Williams


--
Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
list Timothy Williams · Fri, 28 May 2021 16:12:01 -0400 ·
If you want some particular status analyzed on the Host, then read the
External Data portion of the Doc file. Your external script creates an
ASCII file (no extension) in the data location, then the script picks it up
and sends to Xymon. The name of the file becomes the column name, and the
status is in the file you created. Something like "green The test is good"
. I've not done that, so some playing around would be needed.

*Tim*


*Timothy L. Williams*Windows Server
*Operating Systems Analyst*

On Fri, May 28, 2021 at 3:03 PM John Thurston <user-ce4d79d99bab@xymon.invalid>
quoted from John Thurston
wrote:
On 5/28/2021 10:24 AM, Timothy Williams wrote:
- snip -
All Red/yellow/green analysis is done on the server, however there can
be instances where you run a local script and pass the red/green back in
the package to server.
The local-config can be stored on the host, which
makes it harder to centralize/standardize, or is downloaded each cycle
and read into cache.
If I'm reading the XymonPSCleint.doc correctly, then:

'clientconfigfile' is a file containing "config directives"

'clientremotecfgexec' may say "don't clobber the local file with stuff
taken from the Xymon server"

But that's all I get. There is no provision for a local analysis.cfg,
hence xymonclient.ps1 creates only messages of the type 'client', and
never of the type 'status'. (I'm looking at lines 4223-4230 of the .ps1).

Well, shoot. That's unfortunate.

Thanks for the pointer, Tim.


--
Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska