[Xymon] xymon-powershell.ps1

Steve Brown sgb at pics.com
Tue Jun 27 18:15:50 CEST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20170627/df30e4b8/attachment.html>


More information about the Xymon mailing list