[Xymon] clientconfig.cfg not getting updated

Colin Coe colin.coe at gmail.com
Tue Dec 15 02:58:32 CET 2015


Hi Brandon

Thanks for the reply.

Yep, read through the doco a couple of times now trying to get this working.

1. Yep, c:\program files\xymon\xymonclient_config.xml exists (and
xymonclient.ps1 is in this directory) and contains:
---
<XymonSettings>

  <servers>xxx.xx.106.11 xxx.xx.176.11</servers>

  <clientlogfile>c:\xymonclient.log</clientlogfile>
  <clientconfigfile>c:\program files\xymon\clientconfig.cfg</clientconfigfile>

  <clientfqdn>0</clientfqdn>
  <clientlower>1</clientlower>

  <clientremotecfgexec>1</clientremotecfgexec>
</XymonSettings>
---

2. On the server (RHEL6.7, Teribithia RPM 4.3.24),
/etc/xymon/client-local.cfg contains:
---
[powershell]
clientversion:2.04:http://http.url.to.file/pub/
tssessions
adreplicaton
---

I've changed "[os=powershell]" to just "[powershell]" and removed all
but the above (for the powershell client)

3. I've stopped/started the powershell client and waited for a while
with no joy.

I've confirmed that the clients can manually download the file.

Not sure what I'm missing here...

Thanks

On Mon, Dec 14, 2015 at 12:30 PM, Brandon Dale
<BDale at kitchengroup.com.au> wrote:
> 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