[Xymon] clientconfig.cfg not getting updated

Brandon Dale BDale at kitchengroup.com.au
Mon Dec 14 05:30:33 CET 2015


If you haven't already I would read through http://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/XymonPSClient.doc it's pretty decent documentation. 

Try double checking this stuff:

1. Make sure you have copied the .xml file that contains the configuration for the client to the local machine into the same directory where the xymonclient.ps1 script lives http://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/xymonclient_config.xml and that this contains a path for the client-local.cfg file and has clientremotecfgexec set to 1 (this is already done by default in the .xml file in that link) 

2. Put your settings into the client-local.cfg file on your xymon server, I have put an example below, the valid commands are listed in XymonPSClient.doc

[powershell]
eventlogswanted:*:250000:warning,critical,error
ifstat:ipv4
clientversion:2.04:\\somepath\goes\here

3. Wait for or manually run the PowerShell client (by restarting the XymonPSClient Service in windows), you need to do this at least twice as the first time you run it, it will get the commands you have in your client-local.cfg file on your xymon server and write them to the clientconfig.cfg (or whatever you called it in the .xml file) the second time it runs it will start reading it.

Note: make sure you read the documentation for the eventlog ignore rules, the syntax is different. You can still use the IGNORE PATTERN but the way you select which eventlogs to check has changed in the powershell client compared to bbwin. 

Personally I ignore eventlogs in the analysis.cfg on the xymon server rather the in client-local.cfg as you can use regex to match on eventid + Source rather than just the description.


Regards, 


Brandon 




-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Colin Coe
Sent: Monday, 14 December 2015 2:48 PM
To: xymon at xymon.com
Subject: [Xymon] clientconfig.cfg not getting updated

Hi all

I'm noticing that the Windows Powershell Xymon client isn't being updated to reflect changes in client-local.cfg.  I had thought that changes on the Xymon server to client-local.cfg would result in changes on the Windows clients.  Am I wrong here, and if so, what's the correct way to get these changes propagated out?

I'm wanting the following to be pushed out to the clients:
---
tail -n 2 /etc/xymon/client-local.cfg
[os=powershell]
clientversion:2.04:http://benmon1p.scada.horizonpower.com.au/pub/
---

clientlocal.cfg contains:
---
eventlog:security
ignore success
ignore Success
ignore "The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer"
eventlog:system
ignore "Contact the administrator to install the driver before you log in again"
tssessions
adreplicaton
---

Thanks

CC
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon


More information about the Xymon mailing list