<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
@font-face
        {font-family:"Source Sans Pro";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
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.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#034BED;}
.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;}
--></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-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#034BED;mso-fareast-language:EN-US">Hmm, you shouldn’t have to do that – do you have any noservicecheck entries in client-local.cfg? Do those entries have single quotes in at all? If so, that would break that line, you
 could try changing them to double quotes (").<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#034BED;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#034BED;mso-fareast-language:EN-US">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#034BED;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#034BED">Zak </span><span style="color:#034BED"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#034BED;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Timothy Williams <tlwilliams4@vcu.edu>
<br>
<b>Sent:</b> 23 April 2020 14:15<br>
<b>To:</b> Beck, Zak <zak.beck@accenture.com><br>
<b>Cc:</b> Chris Pretorius <chrisp@lightstoneauto.co.za>; xymon@xymon.com<br>
<b>Subject:</b> [External] Re: [Xymon] help with xymonpsclient<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif">I have to edit the file so that it starts/runs on some machines. Try changing about line 2499 from <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif">if ($serviceexclds -ne '') TO:  if ($serviceexclds -ne "")<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p><b><i><span style="font-size:13.5pt;font-family:"Comic Sans MS"">Timothy L. Williams</span></i></b><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Thu, Apr 23, 2020 at 8:58 AM Beck, Zak <<a href="mailto:zak.beck@accenture.com">zak.beck@accenture.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">Hi</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">You did copy nssm.exe to the same location as the client script?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">You could try running it without the service – this is often helpful with startup issues.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">You need to start a powershell prompt with Administrator permissions – you can usually do this by using Run (Win+R) and type in powershell.exe.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">Then use cd to change directory to the location where you installed the client – e.g.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">cd "\program files\xymon"</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">and then to run the client:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">.\xymonclient.ps1</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">You’ll a load of logging, if there are any exception messages in red you have a problem.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">Cheers</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED">Zak</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#034BED"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Xymon <<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>>
<b>On Behalf Of </b>Chris Pretorius<br>
<b>Sent:</b> 23 April 2020 06:29<br>
<b>To:</b> Timothy Williams <<a href="mailto:tlwilliams4@vcu.edu" target="_blank">tlwilliams4@vcu.edu</a>><br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> [External] Re: [Xymon] help with xymonpsclient</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span lang="EN-ZA" style="color:red">This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.</span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-ZA">
<hr size="2" width="100%" noshade="" style="color:red" align="center">
</span></div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA"> </span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Hi Timothy</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Yes, the same location. I backed up the older files, deployed the new files and started the install process.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Are there any logs I can look at that can reveal why the service fails to start?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">The client logs didn’t change during the install and start process.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Regards</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Timothy Williams <<a href="mailto:tlwilliams4@vcu.edu" target="_blank">tlwilliams4@vcu.edu</a>>
<br>
<b>Sent:</b> Wednesday, 22 April 2020 20:24<br>
<b>To:</b> Chris Pretorius <<a href="mailto:chrisp@lightstoneauto.co.za" target="_blank">chrisp@lightstoneauto.co.za</a>><br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [Xymon] help with xymonpsclient</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA"> </span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif">Is that the same location as the older client was? Myself I use a C:\Utils folder to avoid permission
 issues in Program files. Xymon XML config files tell it where to create logs, etc. Make sure service has permission to create files there.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif">here is an excerpt of my xymonclient_config.xml:</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif"><XymonSettings><br>
  <servers>xymon.xxxx.xxx</servers><br>
  <clientlogfile>c:\Logs\xymonclient.log</clientlogfile><br>
  <clientconfigfile>c:\Utils\clientconfig.cfg</clientconfigfile><br>
  <clientlogretain>3</clientlogretain><br>
  <clientfqdn>0</clientfqdn><br>
  <clientlower>0</clientlower><br>
  <clientremotecfgexec>1</clientremotecfgexec><br>
</XymonSettings></span><o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p><b><i><span lang="EN-ZA" style="font-size:13.5pt;font-family:"Comic Sans MS"">Timothy L. Williams</span></i></b><o:p></o:p></p>
<p style="background-image:initial;background-position:initial;background-repeat:initial">
<span lang="EN-ZA"> </span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA"> </span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA">On Wed, Apr 22, 2020 at 2:11 PM Chris Pretorius <<a href="mailto:chrisp@lightstoneauto.co.za" target="_blank">chrisp@lightstoneauto.co.za</a>> wrote:</span><o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Hi Timothy</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Please ignore my previous post</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">I managed to get past the error and the client installed successfully.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">When I run the start command I get the following error:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">PS C:\Program Files\xymon> .\xymonclient.ps1 install</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Service "XymonPSClient" installed successfully!</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">PS C:\Program Files\xymon> .\xymonclient.ps1 start</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">start-service : Failed to start service 'XymonPSClient (XymonPSClient)'.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:4139 char:60</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ ...  $xymonsvcname).Status -ne "Running") { start-service $xymonsvcname }</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">    + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">   ServiceCommandException</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">    + FullyQualifiedErrorId : StartServiceFailed,Microsoft.PowerShell.Commands.StartServiceCommand</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Kind regards</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Chris Pretorius
<br>
<b>Sent:</b> Wednesday, 22 April 2020 18:16<br>
<b>To:</b> Timothy Williams <<a href="mailto:tlwilliams4@vcu.edu" target="_blank">tlwilliams4@vcu.edu</a>><br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> RE: [Xymon] help with xymonpsclient</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Hi Timothy</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">The installation of the latest xymonclient.ps1 failed with the errors below.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">The server is Window2016 server</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">IE version 11</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Had to set the execution policy to Bypass, Setting it to remoteexecution failed</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">PS C:\Program Files\xymon> .\xymonclient.ps1 install</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:28 char:19</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                   ~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Missing file specification after redirection operator.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:28 char:20</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                    ~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">The '<' operator is reserved for future use.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:28 char:55</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                                                       ~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">The '<' operator is reserved for future use.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:29 char:16</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ <!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]--></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                ~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Missing file specification after redirection operator.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:29 char:20</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ <!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]--></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                    ~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">The '<' operator is reserved for future use.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:29 char:55</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ <!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]--></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                                                       ~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">The '<' operator is reserved for future use.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:30 char:16</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ <!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]--></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                ~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Missing file specification after redirection operator.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:30 char:20</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ <!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]--></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                    ~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">The '<' operator is reserved for future use.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:30 char:55</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ <!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]--></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                                                       ~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">The '<' operator is reserved for future use.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">At C:\Program Files\xymon\xymonclient.ps1:31 char:16</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+ <!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]--></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">+                ~</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Missing file specification after redirection operator.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Not all parse errors were reported.  Correct the reported errors and try again.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">    + CategoryInfo          : ParserError: (:) [], ParseException</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">    + FullyQualifiedErrorId : MissingFileSpecification</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Kind regards</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Timothy Williams <<a href="mailto:tlwilliams4@vcu.edu" target="_blank">tlwilliams4@vcu.edu</a>>
<br>
<b>Sent:</b> Wednesday, 22 April 2020 16:54<br>
<b>To:</b> Chris Pretorius <<a href="mailto:chrisp@lightstoneauto.co.za" target="_blank">chrisp@lightstoneauto.co.za</a>><br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [Xymon] help with xymonpsclient</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA"> </span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif">Chris,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif">You are using an outdated script. I could not find the WMI process in any recent versions. I did go
 back and find it in a 2.19 </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif">Version 2.42 now contains:</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif">WriteLog "XymonCollectInfo: CPU info"<br>
    $script:cpuinfo = [ProcessorInformation]::GetSystemInfo()<br>
    $script:numcores  = $cpuinfo.NumberOfProcessors<br>
    WriteLog "Found $($script:numcores) cores"<br clear="all">
</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-size:12.0pt;font-family:"Verdana",sans-serif">Latest version properly shows all 24 cores on my Dell R540.</span><o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p><b><i><span lang="EN-ZA" style="font-size:13.5pt;font-family:"Comic Sans MS"">Timothy L. Williams</span></i></b><o:p></o:p></p>
<p style="background-image:initial;background-position:initial;background-repeat:initial">
<b><span lang="EN-ZA" style="font-family:"Arial",sans-serif">Operating Systems Analyst</span></b><o:p></o:p></p>
<p style="background-image:initial;background-position:initial;background-repeat:initial">
<span lang="EN-ZA" style="font-size:10.0pt;font-family:"Arial",sans-serif">Virginia Commonwealth University Computer Center<b><span style="color:#1155CC"> </span></b></span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA"> </span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA"> </span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA">On Wed, Apr 22, 2020 at 10:20 AM Chris Pretorius <<a href="mailto:chrisp@lightstoneauto.co.za" target="_blank">chrisp@lightstoneauto.co.za</a>> wrote:</span><o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Good day</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">I have a windows server 2016 that I use winpsclient to collect the server matrix and send to xymon</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Problem is the server has 24 cpu’s allocated and on xymon it reports only 12 cores if you open the cpu page for
 the monitored host</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Looks like this is the part in the xymonclient.ps1 script that collects the cpu count:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">    </span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:blue">WriteLog</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:darkred">"XymonCollectInfo: CPU info (WMI)"</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">   
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$script:cpuinfo</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:dimgray">=</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black"> @(</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:blue">Get-WmiObject</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:navy">-Class</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:blueviolet">Win32_Processor</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">   
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:darkgreen">#$script:totalload = 0</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">   
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$script:numcpus</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black"> 
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:dimgray">=</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$cpuinfo</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:dimgray">.</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">Count</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">   
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$script:numcores</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:dimgray">=</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:purple">0</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">   
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$script:numvcpus</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:dimgray">=</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:purple">0</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">   
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:darkblue">foreach</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black"> (</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$cpu</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:darkblue">in</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$cpuinfo</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">) {
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">        </span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:darkgreen">#$script:totalload += $cpu.LoadPercentage</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">       
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$script:numcores</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:dimgray">+=</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$cpu</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:dimgray">.</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">NumberOfCores</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">       
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$script:numvcpus</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:dimgray">+=</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$cpu</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:dimgray">.</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">NumberOfLogicalProcessors</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">    }</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">   
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:darkgreen">#$script:totalload /= $numcpus</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">   
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:blue">WriteLog</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:darkred">"Found
</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">$(</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$script:numcpus</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">)</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:darkred">
 CPUs, total of </span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">$(</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:#A82D00">$script:numcores</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:black">)</span><span lang="EN-ZA" style="font-size:9.0pt;font-family:"Lucida Console";color:darkred">
 cores" </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">How do I modify the script to count the correct number of processors?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif">Kind regards</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA" style="font-family:"Source Sans Pro",sans-serif"> </span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="75" style="width:56.25pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<img border="0" width="73" height="200" style="width:.7604in;height:2.0833in" id="gmail-m_6784503889378302329gmail-m_8810737656602728649gmail-m_1713189075634474567Picture_x0020_1" src="cid:image001.png@01D6197A.57F2E910"><o:p></o:p></p>
</td>
<td width="10" style="width:7.5pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><b><span style="font-family:"Arial",sans-serif;color:#002D72">Chris Pretorius<br>
</span></b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#002D72">Senior Linux Administrator<br>
<br>
</span><img border="0" width="150" height="50" style="width:1.5625in;height:.5208in" id="gmail-m_6784503889378302329gmail-m_8810737656602728649gmail-m_1713189075634474567Picture_x0020_2" src="cid:image002.png@01D6197A.57F2E910" alt="Lightstone"><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="mailto:chrisp@lightstone.co.za" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#002D72">chrisp@lightstone.co.za</span></a><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.lightstone.co.za_&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=xSaUNdht4ayW-5Ku4Gpsyibh9bTwVmO4Fcm-ju-e40A&s=ugSuveOyL_drqnUAz0dZBUcSLSR90WCDryI9hbB4fEc&e=" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#002D72">www.lightstone.co.za</span></a><o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#002D72">0108228687</span><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td colspan="2" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#002D72">Centurion Square, 3rd Floor, cnr Heuwel and Gordon Hood rd, Centurion</span><o:p></o:p></p>
</td>
</tr>
<tr>
<td colspan="2" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.linkedin.com_company_lightstone-2Dpty-2Dltd_&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=xSaUNdht4ayW-5Ku4Gpsyibh9bTwVmO4Fcm-ju-e40A&s=YubTgs_Xi2wMuxxq1c_INNOoxExugs09GnFz-nb3sbM&e=" target="_blank"><span style="text-decoration:none"><img border="0" width="12" height="12" style="width:.125in;height:.125in" id="gmail-m_6784503889378302329gmail-m_8810737656602728649gmail-m_1713189075634474567Picture_x0020_3" src="cid:image003.png@01D6197A.57F2E910"></span></a> 
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_lightstonetweet&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=xSaUNdht4ayW-5Ku4Gpsyibh9bTwVmO4Fcm-ju-e40A&s=2cn6gPi7X1JqOoYf8IeWLQnRn0JAVyyagskFNDpjV4s&e=" target="_blank">
<span style="text-decoration:none"><img border="0" width="14" height="14" style="width:.1458in;height:.1458in" id="gmail-m_6784503889378302329gmail-m_8810737656602728649gmail-m_1713189075634474567Picture_x0020_4" src="cid:image004.png@01D6197A.57F2E910"></span></a> 
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.facebook.com_lightstone.sa&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=xSaUNdht4ayW-5Ku4Gpsyibh9bTwVmO4Fcm-ju-e40A&s=cm4mmU4mrGdXjx8bgVucTo8u5QZGppNX7FEnQxjsI8c&e=" target="_blank">
<span style="text-decoration:none"><img border="0" width="12" height="12" style="width:.125in;height:.125in" id="gmail-m_6784503889378302329gmail-m_8810737656602728649gmail-m_1713189075634474567Picture_x0020_5" src="cid:image005.png@01D6197A.57F2E910"></span></a><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="3" valign="top" style="padding:3.75pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#002D72">This communication is subject to Lightstone's email
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lightstone.co.za_portal_content_email-2Ddisclaimer.aspx&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=xSaUNdht4ayW-5Ku4Gpsyibh9bTwVmO4Fcm-ju-e40A&s=-MiIxoykoD8r3ddiP1t9YmO5rOyXH65umVGSjxfQFBo&e=" target="_blank">
disclaimer</a> </span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA"> </span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-ZA">_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.xymon.com_mailman_listinfo_xymon&d=DwMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=S-aLwpx-PHBTBMIG_c2JczRC0SfuZCmsiH9Iams25FI&m=xSaUNdht4ayW-5Ku4Gpsyibh9bTwVmO4Fcm-ju-e40A&s=EnMRF32_s3dEFk_WLA0vdGIbC02vveAowPD59SXbbds&e=" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a></span><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray"><br>
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by
 you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of
 internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement
 at <a href="https://www.accenture.com/us-en/privacy-policy" target="_blank">https://www.accenture.com/us-en/privacy-policy</a>.
<br>
______________________________________________________________________________________<br>
<br>
<a href="http://www.accenture.com" target="_blank">www.accenture.com</a></span><o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</body>
</html>