<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">BBWIN and BBNT before that had a
      filesystem poller that periodically checked a directory for text
      files with the name "TEST." (i.e. filename with no extension) and
      would send those as a report for "<clientname>.TEST" and
      then delete the file - it wouldn't be hard to add that
      functionality to the PS client. When I was working on it initially
      I didn't have a test that ran that way so it wasn't on my feature
      list, but it is a compatibility/migration issue. There are a
      number of Windows tests that just run that way, some of which are
      BAT files or VBS scripts. Adding into those tests a status report
      send using XymonSend.ps1 would require a bit of work, but so would
      rewriting them in Powershell depending on what they do. Even so,
      the target folder to write the report would still need to be
      updated in the test, as well as setting it up to run as a
      scheduled task. It would be preferable to not be still running
      BBWIN just to run a scheduled external tests with its own client
      test disabled to send the status messages, but that would still
      work.<br>
      <br>
      David.<br>
    </div>
    <blockquote
cite="mid:92b9e6ba56714bb695df8ed374ef8361@BY2PR42MB149.048d.mgd.msft.net"
      type="cite">
      <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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:Tahoma;
        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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:blue;}
.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]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US">Hi<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US">The
            simplest way is to write your tests as Powershell scripts
            then use XymonSend.ps1 from the Windows PS Client to send in
            the results.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US"><a
              moz-do-not-send="true"
href="https://svn.code.sf.net/p/xymon/code/sandbox/WinPSClient/xymonsend.ps1">https://svn.code.sf.net/p/xymon/code/sandbox/WinPSClient/xymonsend.ps1</a><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US">Cheers<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue">Zak
          </span><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:blue"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:blue;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
              style="font-size:11.0pt;font-family:"Calibri",sans-serif"
              lang="EN-US">From:</span></b><span
            style="font-size:11.0pt;font-family:"Calibri",sans-serif"
            lang="EN-US"> Xymon [<a class="moz-txt-link-freetext" href="mailto:xymon-bounces@xymon.com">mailto:xymon-bounces@xymon.com</a>] <b>On
              Behalf Of </b><a class="moz-txt-link-abbreviated" href="mailto:martin.wojak@delwp.vic.gov.au">martin.wojak@delwp.vic.gov.au</a><br>
            <b>Sent:</b> 30 April 2015 06:14<br>
            <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
            <b>Subject:</b> [Xymon] Xymon PS Client and External VBS
            scripts<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">Dear
            All,</span> <br>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">Does
            anyone have a way to run VBS External scripts via Windows
            Schedule Tasks, and send the results directly back to the
            Xymon Server?</span> <br>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">Martin.</span>
          <br>
          <br>
          <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:purple">-----
            Forwarded by Martin Wojak/DSE/VICGOV1 on 30/04/2015 03:06 PM
            -----</span> <br>
          <br>
          <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">From:
                   </span><span
            style="font-size:7.5pt;font-family:"Arial",sans-serif">Brandon
            Dale <<a moz-do-not-send="true"
              href="mailto:BDale@kitchengroup.com.au">BDale@kitchengroup.com.au</a>></span>
          <br>
          <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">To:
                   </span><span
            style="font-size:7.5pt;font-family:"Arial",sans-serif">"<a
              moz-do-not-send="true"
              href="mailto:martin.wojak@delwp.vic.gov.au">martin.wojak@delwp.vic.gov.au</a>"
            <<a moz-do-not-send="true"
              href="mailto:martin.wojak@delwp.vic.gov.au">martin.wojak@delwp.vic.gov.au</a>>,
          </span><br>
          <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Cc:
                   </span><span
            style="font-size:7.5pt;font-family:"Arial",sans-serif">"<a
              moz-do-not-send="true" href="mailto:stef.coene@docum.org">stef.coene@docum.org</a>"
            <<a moz-do-not-send="true"
              href="mailto:stef.coene@docum.org">stef.coene@docum.org</a>></span>
          <br>
          <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Date:
                   </span><span
            style="font-size:7.5pt;font-family:"Arial",sans-serif">30/04/2015
            01:44 PM</span> <br>
          <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Subject:
                   </span><span
            style="font-size:7.5pt;font-family:"Arial",sans-serif">RE:
            Xymon PS Client and External VBS scripts</span> <o:p></o:p></p>
        <div class="MsoNormal" style="text-align:center" align="center">
          <hr style="color:#A0A0A0" noshade="noshade" size="2"
            width="100%" align="center"></div>
        <p class="MsoNormal"><br>
          <br>
          <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">Hey
            Martin,</span> <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span>
          <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">I’m
            also just a sysadmin, this is something I have wanted to do
            as well as there are some vbscripts I could use as externals
            but haven’t worked out an easy way yet. I don’t really know
            vbscript either which doesn’t help </span><span
            style="font-size: 10pt; color: rgb(0, 64, 128);">☹</span> <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span>
          <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">These
            are the options I can think of:</span> <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span>
          <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">1.
                  Use bbwin just for these external tests.</span> <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">2.
                  Use Get-Content somehow in powershell to get the
            information you need from the output of those scripts and
            send that to xymon using xymonsend</span> <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">3.
                  I “think” there is a way to run vbscript code inside
            powershell, you could possibly put it inside a powershell
            script and send directly to xymon.</span> <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span>
          <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">The
            last and ideal option is rewrite them in powershell, I know
            there are some similar scripts already out there but they
            would need to be modified to work with xymon. For example </span><a
            moz-do-not-send="true"
href="https://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542"><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif">https://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542</span></a><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">
            and there are some nagios scripts that do similar things. </span><br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span>
          <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">Option
            1 is the easiest if you don’t have the time to play around
            with PowerShell especially if you already have bbwin on all
            those servers. You should be able to just disable all the
            normal tests for the bbwin client by commenting out
            something in the .cfg file and use it only to send these
            externals.</span> <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span>
          <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">Regards,
          </span><br>
          <span style="font-family:"Calibri",sans-serif"> </span>
          <br>
          <b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#0000A1">Brandon
              Dale</span></b> <br>
          <b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#0000A1">Network
              Administrator</span></b> <br>
          <b><span
              style="font-family:"Tahoma",sans-serif;color:#0000A1"> </span></b>
          <br>
          <b><span
              style="font-family:"Arial",sans-serif;color:#0000A1">Kitchen
            </span></b><b><span
              style="font-family:"Arial",sans-serif;color:gray">|
              Group</span></b> <br>
          <b><span
              style="font-family:"Arial",sans-serif;color:gray"> </span></b>
          <br>
          <b><span
style="font-size:7.5pt;font-family:"Tahoma",sans-serif;color:gray">1
              Wella Way Somersby, NSW, 2250</span></b> <br>
          <span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#0000A1">T
          </span><b><span
style="font-size:7.5pt;font-family:"Tahoma",sans-serif;color:gray">(02)
              4343 6000</span></b><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:gray">
              | </span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#0000A1">D
          </span><b><span
style="font-size:7.5pt;font-family:"Tahoma",sans-serif;color:gray">(02)
              4343 6052</span></b><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:gray">
              | </span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#0000A1">F
          </span><b><span
style="font-size:7.5pt;font-family:"Tahoma",sans-serif;color:gray">(02)
              4343 6080</span></b> <br>
          <span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#0000A1">E
          </span><a moz-do-not-send="true"
            href="mailto:%20BDale@kitchengroup.com.au">BDale@kitchengroup.com.au</a>
          <br>
          <img id="_x0000_i1026"
            src="cid:part9.00030309.00000909@ausport.gov.au" height="19"
            width="20" border="0"><span
            style="font-size:7.5pt;font-family:"Comic Sans
            MS";color:#3F8080">please consider the environment
            before printing this e-mail</span> <o:p></o:p></p>
        <div class="MsoNormal" style="text-align:center" align="center">
          <hr size="2" width="100%" align="center"></div>
        <p class="MsoNormal"><br>
          <span
style="font-size:7.5pt;font-family:"Calibri",sans-serif;color:#004080">Disclaimer:
            This communication is confidential and intended only for the
            addressee. It may contain legally privileged information. By
            the use of email over the Internet, Kitchen Group is not
            waiving either confidentiality of, or legal privilege in,
            the contents of this email and any attachments. If you are
            not the addressee you may not use, disseminate or copy this
            information. If you have received this information in error
            please notify us immediately. Whilst we have taken all
            reasonable care to ensure that neither our system, this
            email nor any attachments has a virus, it is impossible to
            guard against every possible virus. We advise you to scan
            the email and any attachments with your anti virus software
            prior to use. We do not accept liability for any loss or
            damage which may arise from receipt of this email or any
            attachments.</span> <o:p></o:p></p>
        <div class="MsoNormal" style="text-align:center" align="center">
          <hr size="2" width="100%" align="center"></div>
        <p class="MsoNormal"><br>
          <span
style="font-size:7.5pt;font-family:"Calibri",sans-serif;color:#004080"> </span>
          <br>
            <br>
          <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span>
          <br>
          <b><span
              style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"> <a
              moz-do-not-send="true"
              href="mailto:martin.wojak@delwp.vic.gov.au">martin.wojak@delwp.vic.gov.au</a>
            [</span><a moz-do-not-send="true"
            href="mailto:martin.wojak@delwp.vic.gov.au"><span
              style="font-size:10.0pt;font-family:"Tahoma",sans-serif">mailto:martin.wojak@delwp.vic.gov.au</span></a><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">] <b><br>
              Sent:</b> Tuesday, 28 April 2015 4:02 PM<b><br>
              To:</b> Brandon Dale<b><br>
              Cc:</b> <a moz-do-not-send="true"
              href="mailto:stef.coene@docum.org">stef.coene@docum.org</a><b><br>
              Subject:</b> Xymon PS Client and External VBS scripts</span>
          <br>
            <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi
            Brandon,</span> <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
            I'm trying to migrate our 300 VMs from bbwin to PS-client.
             I love some of the new functionality of the PS client, that
            bbwin doesn't have (eg. dirtime, dirsize, restart failed
            service).  But I have 2 External VBS scripts that I would
            like to keep using.</span> <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
            I had a look at converting our 2 VBS scripts that are
            currently called from BBwin, to be able to use xymonsend.ps1
            (or some other way), to talk directly to our Xymon server.  
            I couldn't work out how to do it.  I'm just a SysAdmin, not
            a programmer or developer, so not very good with VB or PS.</span>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
            If you have time, and would be easy to do, can you work out
            how I can make these 2 scripts operate as Windows Scheduled
            tasks and send data directly to our Xymon server.</span> <br>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif">Ta.</span>
          <br>
          <span
            style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
            Martin.</span> <br>
          <b><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#2F2F2F"><br>
              Martin Wojak | Senior Infrastructure Support Officer
              (Fire) |Information Services Division </span></b><b><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#3F8080"><br>
              Corporate Services | </span></b><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#3F8080">Department
            of Environment, Land, Water & Planning</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            Level 9, 8 Nicholson St, East Melbourne, Victoria 3002</span>
          <b><span
              style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
              T</span></b><span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif">:
            03 9637 8470 | <b>M</b>: 0421 445 529 | <b>E</b>: </span><a
            moz-do-not-send="true"
            href="mailto:martin.wojak@delwp.vic.gov.au"><span
              style="font-size:10.0pt;font-family:"Calibri",sans-serif">martin.wojak@delwp.vic.gov.au</span></a>
          <br>
          <br>
          <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:purple">-----
            Forwarded by Martin Wojak/DSE/VICGOV1 on 23/04/2015 02:00 PM
            -----</span> <br>
          <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F"><br>
            From:        </span><span
            style="font-size:7.5pt;font-family:"Arial",sans-serif">Brandon
            Dale <</span><a moz-do-not-send="true"
            href="mailto:BDale@kitchengroup.com.au"><span
              style="font-size:7.5pt;font-family:"Arial",sans-serif">BDale@kitchengroup.com.au</span></a><span
style="font-size:7.5pt;font-family:"Arial",sans-serif">></span>
          <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F"><br>
            To:        </span><span
            style="font-size:7.5pt;font-family:"Arial",sans-serif">Stef
            Coene <</span><a moz-do-not-send="true"
            href="mailto:stef.coene@docum.org"><span
              style="font-size:7.5pt;font-family:"Arial",sans-serif">stef.coene@docum.org</span></a><span
style="font-size:7.5pt;font-family:"Arial",sans-serif">>, "</span><a
            moz-do-not-send="true" href="mailto:xymon@xymon.com"><span
              style="font-size:7.5pt;font-family:"Arial",sans-serif">xymon@xymon.com</span></a><span
style="font-size:7.5pt;font-family:"Arial",sans-serif">" <</span><a
            moz-do-not-send="true" href="mailto:xymon@xymon.com"><span
              style="font-size:7.5pt;font-family:"Arial",sans-serif">xymon@xymon.com</span></a><span
style="font-size:7.5pt;font-family:"Arial",sans-serif">>, <span
              style="color:#5F5F5F"><br>
              Date:        </span>08/04/2015 12:57 PM</span> <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F"><br>
            Subject:        </span><span
            style="font-size:7.5pt;font-family:"Arial",sans-serif">Re:
            [Xymon] Xymon PS Client</span> <span
style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F"><br>
            Sent by:        </span><span
            style="font-size:7.5pt;font-family:"Arial",sans-serif">"Xymon"
            <</span><a moz-do-not-send="true"
            href="mailto:xymon-bounces@xymon.com"><span
              style="font-size:7.5pt;font-family:"Arial",sans-serif">xymon-bounces@xymon.com</span></a><span
style="font-size:7.5pt;font-family:"Arial",sans-serif">></span>
          <o:p></o:p></p>
        <div class="MsoNormal" style="text-align:center" align="center">
          <hr style="color:#A0A0A0" noshade="noshade" size="2"
            width="100%" align="center"></div>
        <p class="MsoNormal"><br>
          <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            Might be a better way but this is how I do it (my external
            scripts are written in PowerShell however)</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            1. I put </span><a moz-do-not-send="true"
href="http://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/xymonsend.ps1"><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif">http://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/xymonsend.ps1</span></a><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif">
            onto each server inside the same directory as the PowerShell
            client</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            2. I dot source this into my external scripts (which I
            normally store in c:\xymon\ext to keep it simple) and use it
            to send the status messages to xymon.</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            3. Run these as scheduled tasks in windows.</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            From the readme:</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            "Talking to the Xymon Server</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            ===========================</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            The "xymonsend.ps1" script contains a PowerShell function
            "XymonSend"</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            that lets you communicate with the Xymon server in the same
            way that</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            the "bb" utility does on the Unix platforms. To use it, you
            must <br>
            "source" this into your PowerShell commandline window: At
            the "PS"</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            prompt, enter</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
                           PS C:\xymon> . .\xymonsend.ps1</span> <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            .."</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            Here's an example of how I use it -  pointless script to
            test if c:\windows exists and send the result to xymon (but
            you get the idea). It will display as the column
            “customtest” for the host “testserver01”</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            $date=get-date -format "ddd MMM dd HH':'mm':'ss zzz yyyy"</span>
          <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            $DELAY="+10m"</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            $xymonserver="xymon01"</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            $machine="testserver01"</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            $column="Customtest"</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            #test logic</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            if(Test-Path c:\windows){</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
               $colour="green"</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
               $msg="&green ALL OK!"</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
               } else {</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
               $colour="red"</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
               $msg="&red world is ending"</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
               }</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            #send to xymon server</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            . c:\xymon\xymonsend.ps1</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            xymonsend "status$delay $machine.$column $colour $date</span>
          <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            $msg</span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:7.5pt;font-family:"Calibri",sans-serif"><br>
            " "$xymonserver"</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            Then schedule that in windows to run however often you want,
            you need to set the delay to a value longer than then the
            interval between each run of your schedule task to avoid it
            going purple.</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            Regards, <br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            Brandon <br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            -----Original Message-----<br>
            From: Xymon [</span><a moz-do-not-send="true"
            href="mailto:xymon-bounces@xymon.com"><span
              style="font-size:10.0pt;font-family:"Calibri",sans-serif">mailto:xymon-bounces@xymon.com</span></a><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif">] On
            Behalf Of Stef Coene<br>
            Sent: Tuesday, 7 April 2015 11:47 PM<br>
            To: </span><a moz-do-not-send="true"
            href="mailto:xymon@xymon.com"><span
              style="font-size:10.0pt;font-family:"Calibri",sans-serif">xymon@xymon.com</span></a><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            Subject: [Xymon] Xymon PS Client</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            Hi,</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            We are using the Powershell client on new servers. But we
            are missing the option to execute external scripts. Has
            anyone an updated version or written a patch so you can
            execute external scripts with the Powershell cient?</span> <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            And if not, how do you execute external scripts when using
            the Powershell client?</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
          </span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            Stef</span> <span
            style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            _______________________________________________</span> <span
style="font-size:10.0pt;font-family:"Calibri",sans-serif"><br>
            Xymon mailing list</span> <u><span style="color:blue"><br>
            </span></u><a moz-do-not-send="true"
            href="mailto:Xymon@xymon.com"><span
              style="font-size:10.0pt;font-family:"Calibri",sans-serif">Xymon@xymon.com</span></a>
          <u><span style="color:blue"><br>
            </span></u><a moz-do-not-send="true"
            href="http://lists.xymon.com/mailman/listinfo/xymon"><span
              style="font-size:10.0pt;font-family:"Calibri",sans-serif">http://lists.xymon.com/mailman/listinfo/xymon</span></a><span
            style="font-size:10.0pt;font-family:"Courier New"">_______________________________________________<br>
            Xymon mailing list<u><span style="color:blue"><br>
              </span></u></span><a moz-do-not-send="true"
            href="mailto:Xymon@xymon.com"><span
              style="font-size:10.0pt;font-family:"Courier
              New"">Xymon@xymon.com</span></a><u><span
              style="color:blue"><br>
            </span></u><a moz-do-not-send="true"
            href="http://lists.xymon.com/mailman/listinfo/xymon"><span
              style="font-size:10.0pt;font-family:"Courier
              New"">http://lists.xymon.com/mailman/listinfo/xymon</span></a>
          <o:p></o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Xymon mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>
<a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission          <a class="moz-txt-link-freetext" href="http://ausport.gov.au">http://ausport.gov.au</a>
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
<a class="moz-txt-link-abbreviated" href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>          1 Leverrier Street Bruce ACT 2617
Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE
</pre>
  <br>
<hr>
Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au">www.ausport.gov.au</a>
<br><br>
<font size="-2" face="arial">This message is intended for the addressee named and may contain confidential and privileged information.  If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful.  If you receive this message in error, please delete it and notify the sender.</font>
<hr>
</body>
</html>