<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px;">
<div>
<div style="font-family: Calibri, sans-serif;">I did manage to get this worked out. It looks like the parameters that get set on the service don’t work for me so I changed them.</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-family: Calibri, sans-serif;">The parameters that get set during “.\xymonclient.ps1 install” are as follows:</div>
<div>
<div><font face="Courier">-nonInteractive -ExecutionPolicy Unrestricted -File C:\Xymon\xymonclient.ps1</font></div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-family: Calibri, sans-serif;">For whatever reason, this didn’t work for me. However, changing it to the following worked:</div>
<div><font face="Courier">-ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File C:\Xymon\xymonclient.ps1</font></div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
</div>
<div style="font-family: Calibri, sans-serif;">The 3 differences are Bypass, instead of Unrestricted (for the Execution Policy), Not loading a profile and hiding the window. I don’t know which of them made it work, but I thought I would document this for anyone
 else that may run into the problem.</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-family: Calibri, sans-serif;">Furthermore, here’s a simple set of Powershell commands I can use to instantiate the Xymon components on new windows servers (assuming the original files are located on \\srcserver\c$\Xymon:</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div>
<div><font face="Courier">New-Item -Type Directory -Path c:\Xymon</font></div>
<div><font face="Courier">CD C:\Xymon</font></div>
<div><font face="Courier">Copy-Item ‘\\srcserver\c$\xymon\XymonPSClient.exe'</font></div>
<div><font face="Courier">Copy-Item '\\srcserver\c$\xymon\xymonclient.ps1'</font></div>
<div><font face="Courier">Copy-Item '\\srcserver\c$\xymon\xymonsend.ps1'</font></div>
<div><font face="Courier">.\xymonclient.ps1 install</font></div>
<div><font face="Courier">.\xymonclient.ps1 set servers xymonserver</font></div>
<div><font face="Courier">.\xymonclient.ps1 set clientconfigfile C:\Xymon\xymonconfig.cfg</font></div>
<div><font face="Courier">.\xymonclient.ps1 set clientlogfile C:\Xymon\xymonclient.log</font></div>
<div><font face="Courier">New-ItemProperty -Path "HKLM:\System\CurrentControlSet\services\XymonPSClient\parameters" -name "Application Parameters" -Type string -Value "-ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File C:\Xymon\xymonclient.ps1"
 -Force</font></div>
<div><font face="Courier">Start-Service XymonPSClient</font></div>
</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-family: Calibri, sans-serif;">Having run those, and assuming the server I’m running it on has already been added to hosts.cfg on xymonserver, it all works out.</div>
<div style="font-family: Calibri, sans-serif;"><br>
</div>
<div style="font-family: Calibri, sans-serif;">
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; ">---<o:p></o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; "><o:p> </o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; ">Jason Richards Pagh<o:p></o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; "><br>
</p>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION" style="font-family: Calibri, sans-serif;">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Jason Richards Pagh <<a href="mailto:jasonrp@techheads.com">jasonrp@techheads.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, November 12, 2013 at 9:54 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>" <<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>><br>
<span style="font-weight:bold">Subject: </span>[Xymon] Step missing to get XymonPSClient working?<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi there,</div>
<div><br>
</div>
<div>I used to run big brother, like 12 – 15 years ago, and now I’m trying to setup Xymon. I’ve got the server side working (at least for pings, telnet checks, etc.), but I can’t seem to get XymonPSClient to work. I’ve downloaded the files from SF, installed
 the service and it’s running, but it doesn’t seem to be sending any data to my Xymon server. I can verify connectivity with XymonSend from the Windows host, but I don’t see any client logs, nor do I see any added checks on the web page.</div>
<div><br>
</div>
<div>Am I supposed to create a local config file on the Windows host? Or do I add something to hosts.cfg on the server? The README file wasn’t super explanatory and I can’t seem to find any other instructions. Do these exist and I just missed them?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Jason</div>
<div><br>
</div>
<div>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; ">---<o:p></o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; "><o:p> </o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; ">Jason Richards Pagh<o:p></o:p></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt; "><br>
</p>
</div>
</div>
</div>
</span>
</body>
</html>