<div dir="ltr">This is awesome news, thanks!<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 28, 2016 at 5:08 PM,  <span dir="ltr"><<a href="mailto:zak.beck@accenture.com" target="_blank">zak.beck@accenture.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">Hi<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have today committed v2.15. This has a big, new feature that we've been working on internally for some time and testing in our environment, that is, external scripts and external data.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">As far as is possible, I have replicated the BBWin functionality for external data. Data files in the 'externaldatalocation' directory (installdir\tmp by default) with the correct file format will be uploaded to Xymon. You can therefore run external scripts, have them produce status data files in the correct format and that will be uploaded. The format is the same as BBWin and that described in 'Xymon Message Syntax' on this page: <a href="http://xymon.sourceforge.net/xymon/help/manpages/man1/xymon.1.html" target="_blank">http://xymon.sourceforge.net/xymon/help/manpages/man1/xymon.1.html</a>. The sample scripts supplied with BBWin, e.g. fsmon.vbs, should work without material changes (fsmon for example looks in the registry for a couple of locations of folders, this may need changing if you have never installed BBWin).<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">You can now also specify external scripts in client-local.cfg to be run either every scan or every "slow" scan, and they can be sent to run synchronously or asynchronously - therefore a relatively simple external script scheduler. The scripts can either pre-exist on the target or they can be downloaded from a central web server or file share (like client updates). Script versioning is controlled via hashes – this has also been extended to client updates (optionally).<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Obviously the use of external scripts requires some care – for example, if you specify synchronous execution and your script never completes, XymonPSClient will be left waiting forever. If you specify asynchronous and your script never completes, you can end up with multiple processes building up over time. It's quite difficult to work out what may be happening with external scripts if you do not have any form of logging in your script, just as it would be with BBWin – therefore if you're having trouble, I recommend logging to file at various points in your script and the start and end of execution.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Note that external scripts will be run as the same user as XymonPSClient, which would usually be the LOCAL SYSTEM user. You can test whether your script works as LOCAL SYSTEM interactively using psexec (e.g. psexec -i -s cmd.exe), from the sysinternals process utilities (<a href="https://technet.microsoft.com/en-gb/sysinternals/psexec" target="_blank">https://technet.microsoft.com/en-gb/sysinternals/psexec</a>).<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have updated the XymonPSClient.doc which has a section on external scripts and data – please read this carefully first as there are a number of options associated with these new features. I will try and answer any questions about scheduling and external data configuration, but I can't commit to answering questions about or debugging your individual scripts.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><span>Zak </span><span style="font-size:9.0pt;font-family:"Arial",sans-serif"><u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>