Xymon Mailing List Archive search

Xymon PowerShell Windows client

list David Baldwin
Thu, 5 Mar 2015 10:46:07 +1100
Message-Id: <user-48caf88b2507@xymon.invalid>

On 5/03/15 10:07 AM, Brandon Dale wrote:
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.
If BBWin will just ignore (or at least be unaffected by) the ones it doesn't understand then that shouldn't be a problem, it's only if there are mutual incompatibilities that should be an issue.

David.
Regards,

*Brandon *

*From:*David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
*Sent:* Thursday, 5 March 2015 8:57 AM
*To:* user-aada0fa38bf8@xymon.invalid; user-71895fb2e44c@xymon.invalid; 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
user-cbbf693f2c89@xymon.invalid  <mailto:user-cbbf693f2c89@xymon.invalid>           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.
-- 
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
user-cbbf693f2c89@xymon.invalid          1 Leverrier Street Bruce ACT 2617
Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE