Xymon Mailing List Archive search

xymon-powershell.ps1

list Steve Brown
Tue, 27 Jun 2017 16:15:50 +0000
Message-Id: <user-0c8002aa9e9d@xymon.invalid>

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="<iframe name=\"locktbl\" src=\"/hobbit/dba/${RHOST}/${MNAME}-lock.html\" frameborder=\"no\" height=\"600\" width=\"1200\"></iframe>"
LINE="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