<div dir="ltr">That still doesn't work. It doesn't seem to be actually sending to the Xymon server at all.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 11, 2015 at 2:04 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">The hostname in the status line should be comma-separated.</p>
<p dir="ltr">Ralph Mitchell</p>
<div class="gmail_quote"><div><div class="h5">On Sep 11, 2015 8:57 AM, "Neil Simmonds" <<a href="mailto:neilsimmonds1808@gmail.com" target="_blank">neilsimmonds1808@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div><div>Hi, I'm having a lot of trouble with the xymonsend.ps1 script. I've got a VB script that creates a file with a first line that looks like this,<br><br>status fully.qualified.hostname.tserv_proc green 11/09/2015 13:45:00<br><br></div>and I'm using the following command to send it to my Xymon server,<br><br>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NonInteractive -File "C:\Xymon\Xymonsend.ps1" XymonServe @ "C:\Xymon\tserv_proc"<br><br></div>If I run the command from a powershell prompt as <br><br></div>.\xymonsend.ps1 XymonServe @ "C:\Xymon\tserv.proc"<br><br></div>then it seems to not like the @  (my fake hostname is the same length as the real one)<br><br>PS C:\Xymon> .\xymonsend.ps1 XymonServe @ "C:\Xymon\tserv_proc"<br>Unrecognized token in source text.<br>At line:1 char:28<br>+ .\xymonsend.ps1 XymonServe  <<<< @ "C:\Xymon\tserv_proc"<br>    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordEx<br>   ception<br>    + FullyQualifiedErrorId : UnrecognizedToken<br><br></div>If anyone can help it would be much appreciated.<br></div>Regards,<br></div>Neil.<br><div><div><div><div><br></div></div></div></div></div>
<br></div></div>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div>
</blockquote></div><br></div>