[Xymon] Xymon PowerShell Windows client
Brandon Dale
BDale at kitchengroup.com.au
Thu Mar 5 00:07:47 CET 2015
The problem is if you are running both bbwin and the powershell client you need a way to be able to setup separate commands in the client-local.cfg for each type of client.
Regards,
Brandon
From: David Baldwin [mailto:david.baldwin at ausport.gov.au]
Sent: Thursday, 5 March 2015 8:57 AM
To: zak.beck at accenture.com; jlaidman at rebel-it.com.au; Brandon Dale
Cc: xymon at xymon.com
Subject: Re: [Xymon] Xymon PowerShell Windows client
Zak,
Unfortunately, you can't fake the BBWin identifier for just one section – you have to change the client to report in as BBwin. It was changed so that we could experimentally use separate configuration options for BBWin clients and Powershell clients.
To change how the client reports itself, change line 2746 in the current commit:
2745 WriteLog "Performing main and optional tests and building output..."
2746 $clout = "client " + $clientname + ".powershell powershell XymonPS" | Out-String
2747 $clsecs = XymonClientSections | Out-String
In the original Powershell client, this line was:
$clout = "client " + $clientname + ".bbwin win32" | Out-String
So you can see we've changed '.bbwin' to '.powershell' and 'win32' to 'powershell'.
I appreciate this isn't very good and should probably be a configuration item.
Changing the client from bbwin to something else is less harmful. Changing class from win32 to powershell will probably break LOTS of stuff. I suspect many users migrating from BBWin use "class=win32" in analysis.cfg (hobbit-clients.cfg) file extensively. The class is probably also used in the section parsing -> status reports/RRD data extraction. It will also break the config segment returned from client-local.cfg - e.g.
[win32]
dir:C:\Windows\Temp
log:c:\WINDOWS\WindowsUpdate.log:20480
David.
--
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission http://ausport.gov.au
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
david.baldwin at ausport.gov.au<mailto:david.baldwin at ausport.gov.au> 1 Leverrier Street Bruce ACT 2617
Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE
________________________________
Keep up to date with what's happening in Australian sport visit www.ausport.gov.au<http://www.ausport.gov.au>
This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150304/098b7403/attachment.html>
More information about the Xymon
mailing list