<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:794299961;
        mso-list-type:hybrid;
        mso-list-template-ids:1190431800 -845624254 201916441 201916443 201916431 201916441 201916443 201916431 201916441 201916443;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-weight:bold;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I have been testing the XymonPSClient for windows found a few problems I was hoping someone could help with, I set this up on a few machines running 2008r2 and 2012r2<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><b><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">      
</span></span></b><![endif]>Tried to install on Server 2012 R2 running powershell version 4, got this error:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">PS C:\xymon> .\xymonclient.ps1 install<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">At C:\xymon\xymonclient.ps1:28 char:24<o:p></o:p></p>
<p class="MsoNormal">+ $XymonClientVersion = "$Id: xymonclient.ps1 7348 2014-01-15 05:13:48Z dbaldwin $ ...<o:p></o:p></p>
<p class="MsoNormal">+                        ~~~~<o:p></o:p></p>
<p class="MsoNormal">Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to<o:p></o:p></p>
<p class="MsoNormal">delimit the name.<o:p></o:p></p>
<p class="MsoNormal">    + CategoryInfo          : ParserError: (:) [], ParseException<o:p></o:p></p>
<p class="MsoNormal">    + FullyQualifiedErrorId : InvalidVariableReferenceWithDrive<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I edited xymonclient.ps1 and just removed the “:” character and that seems to make it work.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><b><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">      
</span></span></b><![endif]>setting <b>clientfqdn 0</b> doesn’t stop it appending the fqdn, to get this to work I have to manually set the hostname without the fqdn on this line and uncomment the line:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:18.0pt"><o:p> </o:p></p>
<p class="MsoNormal"># $clientname  = "winxptest"     # Define this to override the default client hostname<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here is an example of my config<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">PS C:\xymon> .\xymonclient.ps1 config<o:p></o:p></p>
<p class="MsoNormal">XymonPSClient config:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">servers          : kgxymon01<o:p></o:p></p>
<p class="MsoNormal">clientconfigfile : C:\xymon\xymonconfig.cfg<o:p></o:p></p>
<p class="MsoNormal">clientlogfile    : C:\xymon\xymonclient.log<o:p></o:p></p>
<p class="MsoNormal">clientname       : test05<o:p></o:p></p>
<p class="MsoNormal">clientfqdn       : 0<o:p></o:p></p>
<p class="MsoNormal">loginterval      : 60<o:p></o:p></p>
<p class="MsoNormal">name             : test05<o:p></o:p></p>
<p class="MsoNormal">loopinterval     : 60<o:p></o:p></p>
<p class="MsoNormal">reportevt        : 1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Settable Params and values:<o:p></o:p></p>
<p class="MsoNormal">    clientbbwinmembug=1<o:p></o:p></p>
<p class="MsoNormal">    clientconfigfile=C:\xymon\xymonconfig.cfg<o:p></o:p></p>
<p class="MsoNormal"><b>    clientfqdn=0<o:p></o:p></b></p>
<p class="MsoNormal">    clientlogfile=C:\xymon\xymonclient.log<o:p></o:p></p>
<p class="MsoNormal">    clientlower=1<o:p></o:p></p>
<p class="MsoNormal">    clientname=test05<o:p></o:p></p>
<p class="MsoNormal">    clientremotecfgexec=0<o:p></o:p></p>
<p class="MsoNormal">    loginterval=60<o:p></o:p></p>
<p class="MsoNormal">    loopinterval=60<o:p></o:p></p>
<p class="MsoNormal">    maxlogage=60<o:p></o:p></p>
<p class="MsoNormal">    name=test05<o:p></o:p></p>
<p class="MsoNormal">    reportevt=1<o:p></o:p></p>
<p class="MsoNormal">    servers=kgxymon01<o:p></o:p></p>
<p class="MsoNormal">    slowscanrate=72<o:p></o:p></p>
<p class="MsoNormal">    wanteddisks=3<o:p></o:p></p>
<p class="MsoNormal">    wantedlogs=Application System Security<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">and here is part of the contents of c:\xymon\xymonclient.log the fqdn is still added.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">clientname<o:p></o:p></p>
<p class="MsoNormal"><b>test05.mydomain.local<o:p></o:p></b></p>
<p class="MsoNormal">[XymonPSClientInfo]<o:p></o:p></p>
<p class="MsoNormal">Id      : 2212<o:p></o:p></p>
<p class="MsoNormal">Handles : 442<o:p></o:p></p>
<p class="MsoNormal">CPU     : 24.640625<o:p></o:p></p>
<p class="MsoNormal">Name    : powershell<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><b><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">      
</span></span></b><![endif]>Can’t filter out events, the settings from client-local.cfg on the xymon server are successfully copied to c:\xymon\xymonconfig.cfg with the filter rules I had setup for BBwin which work. For example<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">eventlog:application:10240<o:p></o:p></p>
<p class="MsoNormal">ignore This is a test<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I would expect this to ignore any event where the message is “This is a test” this works in BBwin, with the powershell client the event will still appear in the msgs column, as far as I can these filters don’t work at all with the PowerShell
 client but I may be doing it wrong.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><b><span style="mso-list:Ignore">4.<span style="font:7.0pt "Times New Roman"">      
</span></span></b><![endif]>In xymonclient.ps1 for function XymonMsgs it has the following:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Get-EventLog -ErrorAction:SilentlyContinue -LogName $log.Log -asBaseObject -After $since | where {$_.EntryType -match "<b>Error|Warning</b>"}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is missing “Critical” level, after a quick google it seems like get-eventlog might not support retrieving critical level events, does this mean the powershell client will never report on critical events?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#000097">Brandon Dale<o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>