Hi David,
The documentation here https://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/XymonPSCl... is pretty good for the PowerShell client you should have a read through that if you haven’t already.
To answer your questions:
Yes, your script should be writing a file to a directory that the PowerShell client will then send to xymon when it runs as a status message. The location you need to write to will default to “<installation dir>\tmp” unless you specify it as something else using the externaldatalocation element in the xymonclient_config.xmlI’m not familiar with hotfix.ps1 – what is it ? can you link to it somewhere? You are running it using Synchronous mode (see the documentation) this waits for the script to complete before the client continues running – for some reason your script is not finishing (or not running at all) which is causing your client to not finish running.
First step to troubleshoot is get to the point where you can run the script on its own and it’s writing the output file to the correct directory. If it isn’t doing that, that is the first thing you need to fix. Regards,
Brandon
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of David Boyer Sent: Thursday, 16 June 2016 5:22 AM To: xymon at xymon.com Subject: [Xymon] XymonPSclient EXT scripts [phishing]
Zak,
Should the ext script write to stdout or should it be directed to say a file in <xymon>\tmp to be sent to the Xymon server? I set it up on the server client-local.cfg: external:everyscan:sync:hotfix.ps1 As PSClient started the hotfix.ps1 (looking at the xymonclient.txt logfile), after 15m it still had not moved on... I was wondering if something was broke w/the hotfix.ps1. I ran it by hand and everything was output to the screen. Any help would be appreciated!
Thanks,
Dave