From sgb@pics.com Wed Jun 24 08:24:17 2026 From: sgb@pics.com To: xymon@xymon.com Subject: [Xymon] xymon-powershell.ps1 Date: Tue, 27 Jun 2017 16:15:50 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8641220619283544575==" --===============8641220619283544575== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Is there a way to send an html table through the xymon-powershell.ps1 script? 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 OBJFILE=3D"" LINE=3D"status $MACHINE.$TEST $COLOR ${OBJFILE} " $BB $BBDISP "$LINE" #SEND IT TO BBDISPLAY The status line is very similar to the xymon-powershell.ps1 input powershell -file xymon-powershell.ps1 %XYMSRV% "status %COMPUTERNAME%.mytest = green %DATE% %TIME%" "The status of 'mytest' is 'satisfactory' at %DATE% %TIM= E%" "" "here's the last line" I basically want to replace the "The status of 'mytest' is 'satisfactory' at = %DATE% %TIME%" with an html table. Thank you for your help Steve --===============8641220619283544575==-- From zak.beck@accenture.com Wed Jun 24 08:24:17 2026 From: zak.beck@accenture.com To: xymon@xymon.com Subject: [Xymon] xymon-powershell.ps1 Date: Wed, 28 Jun 2017 09:06:06 +0000 Message-ID: In-Reply-To: =?utf-8?q?=3CBY2PR05MB2216464BD1A04D2634F992F8CADC0=40BY2PR05MB?= =?utf-8?q?2216=2Enamprd05=2Eprod=2Eoutlook=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7230162057955676854==" --===============7230162057955676854== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi I'm not familiar with xymon-powershell.ps1, but I don't see why not, the serv= er certainly supports it (we do it all the time in the Powershell client). Bear in mind for powershell, the escape character for those double-quotes is = backtick (`), as in: "" You may want to switch to the Windows Powershell client, it allows you to sch= edule and run external scripts or pick up data from external text files, so w= hatever is calling xymon-powershell.ps1 could just write a text file in the c= orrect format to c:\program files\xymon\tmp and it would get sent... https://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/ Cheers Zak From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Steve Brown Sent: 27 June 2017 17:16 To: 'xymon at xymon.com' Subject: [External] [Xymon] xymon-powershell.ps1 Hi Is there a way to send an html table through the xymon-powershell.ps1 script? 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 OBJFILE=3D"" LINE=3D"status $MACHINE.$TEST $COLOR ${OBJFILE} " $BB $BBDISP "$LINE" #SEND IT TO BBDISPLAY The status line is very similar to the xymon-powershell.ps1 input powershell -file xymon-powershell.ps1 %XYMSRV% "status %COMPUTERNAME%.mytest = green %DATE% %TIME%" "The status of 'mytest' is 'satisfactory' at %DATE% %TIM= E%" "" "here's the last line" I basically want to replace the "The status of 'mytest' is 'satisfactory' at = %DATE% %TIME%" with an html table. Thank you for your help Steve ________________________________ 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 o= ther use of the e-mail by you is prohibited. Where allowed by local law, elec= tronic 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. _____________________________________________________________________________= _________ www.accenture.com --===============7230162057955676854==-- From davieb@gmail.com Wed Jun 24 08:24:17 2026 From: davieb@gmail.com To: xymon@xymon.com Subject: [Xymon] xymon-powershell.ps1 Date: Wed, 28 Jun 2017 23:23:42 -0400 Message-ID: In-Reply-To: =?utf-8?q?=3CCY4P114MB00233F21A9E9E48A229536E398DD0=40CY4P114MB?= =?utf-8?q?0023=2ENAMP114=2EPROD=2EOUTLOOK=2ECOM=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4142196574057515710==" --===============4142196574057515710== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, 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. Dave On Wed, Jun 28, 2017 at 5:06 AM, Beck, Zak wrote: > Hi > > > > I=E2=80=99m not familiar with xymon-powershell.ps1, but I don=E2=80=99t see= why not, the > server certainly supports it (we do it all the time in the Powershell > client). > > > > Bear in mind for powershell, the escape character for those double-quotes > is backtick (`), as in: > > > > "
" > > > > 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=E2= =80=A6 > > > > https://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/ > > > > Cheers > > > > Zak > > > > *From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Steve Brown > *Sent:* 27 June 2017 17:16 > *To:* 'xymon at xymon.com' > *Subject:* [External] [Xymon] xymon-powershell.ps1 > > > > Hi > > Is there a way to send an html table through the xymon-powershell.ps1 > script? > > > > I currently use bb-central where I have a Linux script that runs on the > xymon server. I=E2=80=99m able to send the html table with the following > > > > > > OBJFILE=3D"" > > LINE=3D"status $MACHINE.$TEST $COLOR > > ${OBJFILE} " > > $BB $BBDISP "$LINE" #SEND IT TO BBDISPLAY > > > > The status line is very similar to the xymon-powershell.ps1 input > > > > 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" > > > > I basically want to replace the "The status of 'mytest' is 'satisfactory' > at %DATE% %TIME%" with an html table. > > > > Thank you for your help > > Steve > > ------------------------------ > > 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. > ____________________________________________________________ > __________________________ > > www.accenture.com > > _______________________________________________ > Xymon mailing list > Xymon at xymon.com > http://lists.xymon.com/mailman/listinfo/xymon > > --===============4142196574057515710==-- From sgb@pics.com Wed Jun 24 08:24:17 2026 From: sgb@pics.com To: xymon@xymon.com Subject: [Xymon] xymon-powershell.ps1 Date: Thu, 29 Jun 2017 12:22:17 +0000 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7713339402138101793==" --===============7713339402138101793== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Thanks I=E2=80=99ll see if I can get permission to install the PowerShell cli= ent and create files on the client machine. Can you send me an example of th= e file you place in c:\..\..\tmp ? From: David Boyer [mailto:davieb at gmail.com] Sent: Wednesday, June 28, 2017 10:24 PM To: Beck, Zak Cc: Steve Brown ; xymon at xymon.com Subject: Re: [Xymon] xymon-powershell.ps1 Hi, 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 th= e test name on the xymon web page. I have a couple of sched tasks that work t= his way. Dave On Wed, Jun 28, 2017 at 5:06 AM, Beck, Zak > wrote: Hi I=E2=80=99m not familiar with xymon-powershell.ps1, but I don=E2=80=99t see w= hy not, the server certainly supports it (we do it all the time in the Powers= hell client). Bear in mind for powershell, the escape character for those double-quotes is = backtick (`), as in: "
" You may want to switch to the Windows Powershell client, it allows you to sch= edule and run external scripts or pick up data from external text files, so w= hatever is calling xymon-powershell.ps1 could just write a text file in the c= orrect format to c:\program files\xymon\tmp and it would get sent=E2=80=A6 https://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/ Cheers Zak From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Steve Brown Sent: 27 June 2017 17:16 To: 'xymon at xymon.com' > Subject: [External] [Xymon] xymon-powershell.ps1 Hi Is there a way to send an html table through the xymon-powershell.ps1 script? I currently use bb-central where I have a Linux script that runs on the xymon= server. I=E2=80=99m able to send the html table with the following OBJFILE=3D"" LINE=3D"status $MACHINE.$TEST $COLOR ${OBJFILE} " $BB $BBDISP "$LINE" #SEND IT TO BBDISPLAY The status line is very similar to the xymon-powershell.ps1 input powershell -file xymon-powershell.ps1 %XYMSRV% "status %COMPUTERNAME%.mytest = green %DATE% %TIME%" "The status of 'mytest' is 'satisfactory' at %DATE% %TIM= E%" "" "here's the last line" I basically want to replace the "The status of 'mytest' is 'satisfactory' at = %DATE% %TIME%" with an html table. Thank you for your help Steve ________________________________ 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 o= ther use of the e-mail by you is prohibited. Where allowed by local law, elec= tronic 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. _____________________________________________________________________________= _________ www.accenture.com _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon --===============7713339402138101793==-- From zak.beck@accenture.com Wed Jun 24 08:24:17 2026 From: zak.beck@accenture.com To: xymon@xymon.com Subject: [Xymon] xymon-powershell.ps1 Date: Thu, 29 Jun 2017 12:50:13 +0000 Message-ID: In-Reply-To: =?utf-8?q?=3CBY2PR05MB2216A351B9DAF066BFD85834CAD20=40BY2PR05MB?= =?utf-8?q?2216=2Enamprd05=2Eprod=2Eoutlook=2Ecom=3E?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4012780117745972787==" --===============4012780117745972787== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi There=E2=80=99s a section in the doc file for XymonPSClient headed =E2=80=9CE= xternal data=E2=80=9D which describes the file in detail. Here=E2=80=99s a copy / paste of the format from that section: [+LIFETIME] GROUPCOLOUR =E2=80=93 red, yellow or green =E2=80=93 the colour for the group +LIFETIME =E2=80=93 optional =E2=80=93 how long before Xymon should turn the = status purple if no further results are received, specified in minutes (but s= upports 'h', 'd' or 'w' suffix e.g. 5h for 5 hours) MESSAGE - the message to be displayed. This message can span multiple lines = and can include =E2=80=9C&colour=E2=80=9D e.g. &green / &yellow / &red to dis= play a subtest with the corresponding coloured GIF. For example, the external script fsmon supplied with the BBWin source writes = external files with the following contents: green 14/01/2016 14:37:07 [SERVER1] &green checking directory extdirtest 'c:\temp' - Rules are <50 and <100 - Act= ually 5 file(s) Here the group colour is green and the subtest colour is also green, no lifet= ime has been specified so the result will turn purple after the default inter= val if no more test results are sent. Note that you can also do this with BBWin if that=E2=80=99s what you=E2=80=99= re using, and the message can include html as per your requirement. Thanks Zak From: Steve Brown [mailto:sgb at pics.com] Sent: 29 June 2017 13:22 To: David Boyer ; Beck, Zak Cc: xymon at xymon.com Subject: [External] RE: [Xymon] xymon-powershell.ps1 Thanks I=E2=80=99ll see if I can get permission to install the PowerShell cli= ent and create files on the client machine. Can you send me an example of th= e file you place in c:\..\..\tmp ? From: David Boyer [mailto:davieb at gmail.com] Sent: Wednesday, June 28, 2017 10:24 PM To: Beck, Zak > Cc: Steve Brown >; xymon at xymon.com= Subject: Re: [Xymon] xymon-powershell.ps1 Hi, 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 th= e test name on the xymon web page. I have a couple of sched tasks that work t= his way. Dave On Wed, Jun 28, 2017 at 5:06 AM, Beck, Zak > wrote: Hi I=E2=80=99m not familiar with xymon-powershell.ps1, but I don=E2=80=99t see w= hy not, the server certainly supports it (we do it all the time in the Powers= hell client). Bear in mind for powershell, the escape character for those double-quotes is = backtick (`), as in: "
" You may want to switch to the Windows Powershell client, it allows you to sch= edule and run external scripts or pick up data from external text files, so w= hatever is calling xymon-powershell.ps1 could just write a text file in the c= orrect format to c:\program files\xymon\tmp and it would get sent=E2=80=A6 https://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/ Cheers Zak From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Steve Brown Sent: 27 June 2017 17:16 To: 'xymon at xymon.com' > Subject: [External] [Xymon] xymon-powershell.ps1 Hi Is there a way to send an html table through the xymon-powershell.ps1 script? I currently use bb-central where I have a Linux script that runs on the xymon= server. I=E2=80=99m able to send the html table with the following OBJFILE=3D"" LINE=3D"status $MACHINE.$TEST $COLOR ${OBJFILE} " $BB $BBDISP "$LINE" #SEND IT TO BBDISPLAY The status line is very similar to the xymon-powershell.ps1 input powershell -file xymon-powershell.ps1 %XYMSRV% "status %COMPUTERNAME%.mytest = green %DATE% %TIME%" "The status of 'mytest' is 'satisfactory' at %DATE% %TIM= E%" "" "here's the last line" I basically want to replace the "The status of 'mytest' is 'satisfactory' at = %DATE% %TIME%" with an html table. Thank you for your help Steve ________________________________ 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 o= ther use of the e-mail by you is prohibited. Where allowed by local law, elec= tronic 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. _____________________________________________________________________________= _________ www.accenture.com _______________________________________________ Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon --===============4012780117745972787==--