<div dir="ltr"><div><div>Hi,<br><br></div>Like Zak said, just write your HTML page to a file then place it in the c:\..\..\tmp and it should be picked up within 5mins. The filename will reflect the test name on the xymon web page. I have a couple of sched tasks that work this way.<br><br></div>Dave<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 28, 2017 at 5:06 AM, Beck, Zak <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 link="#0563C1" vlink="#954F72" lang="EN-GB">
<div class="m_7977318337028249492WordSection1">
<p class="MsoNormal"><span style="color:#0d13ff">Hi<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff">I’m not familiar with xymon-powershell.ps1, but I don’t see why not, the server certainly supports it (we do it all the time in the Powershell client).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff">Bear in mind for powershell, the escape character for those double-quotes is backtick (`), as in:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff">"<table width=`"100%`">"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff">You may want to switch to the Windows Powershell client, it allows you to schedule and run external scripts or pick up data from external text files, so whatever is calling xymon-powershell.ps1
 could just write a text file in the correct format to c:\program files\xymon\tmp and it would get sent…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff"><a href="https://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/" target="_blank">https://sourceforge.net/p/<wbr>xymon/code/HEAD/tree/sandbox/<wbr>WinPSClient/</a>
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff">Cheers<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#0d13ff"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="color:#0d13ff">Zak</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#0d13ff"><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="color:#0d13ff"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Xymon [mailto:<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.<wbr>com</a>]
<b>On Behalf Of </b>Steve Brown<br>
<b>Sent:</b> 27 June 2017 17:16<br>
<b>To:</b> '<a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a>' <<a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a>><br>
<b>Subject:</b> [External] [Xymon] xymon-powershell.ps1<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">Hi<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there a way to send an html table through the xymon-powershell.ps1 script?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I currently use bb-central where I have a Linux script that runs on the xymon server. I’m able to send the html table with the following<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">OBJFILE="<iframe name=\"locktbl\" src=\"/hobbit/dba/${RHOST}/${<wbr>MNAME}-lock.html\" frameborder=\"no\" height=\"600\" width=\"1200\"></iframe>"<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">LINE="status $MACHINE.$TEST $COLOR<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">        ${OBJFILE} "<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">$BB $BBDISP "$LINE"               #SEND IT TO BBDISPLAY<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The status line is very similar to the xymon-powershell.ps1 input
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">powershell -file xymon-powershell.ps1 %XYMSRV% "status %COMPUTERNAME%.mytest green %DATE% %TIME%" "The status of 'mytest' is 'satisfactory' at %DATE% %TIME%" "" "here's the last line"<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I basically want to replace the "The status of 'mytest' is 'satisfactory' at %DATE% %TIME%" with an html table.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you for your help<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Steve<u></u><u></u></span></p>
</div></div></div>
<br>
<hr>
<font size="1" color="Gray" face="Arial"><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. <br>
______________________________<wbr>______________________________<wbr>__________________________<br>
<br>
<a href="http://www.accenture.com" target="_blank">www.accenture.com</a><br>
</font>
</div>

<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>