[Xymon] xymonsend.ps1

Neil Simmonds neilsimmonds1808 at gmail.com
Fri Sep 11 15:07:51 CEST 2015


That still doesn't work. It doesn't seem to be actually sending to the
Xymon server at all.

On Fri, Sep 11, 2015 at 2:04 PM, Ralph Mitchell <ralphmitchell at gmail.com>
wrote:

> The hostname in the status line should be comma-separated.
>
> Ralph Mitchell
> On Sep 11, 2015 8:57 AM, "Neil Simmonds" <neilsimmonds1808 at gmail.com>
> wrote:
>
>> 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,
>>
>> status fully.qualified.hostname.tserv_proc green 11/09/2015 13:45:00
>>
>> and I'm using the following command to send it to my Xymon server,
>>
>> C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo
>> -NonInteractive -File "C:\Xymon\Xymonsend.ps1" XymonServe @
>> "C:\Xymon\tserv_proc"
>>
>> If I run the command from a powershell prompt as
>>
>> .\xymonsend.ps1 XymonServe @ "C:\Xymon\tserv.proc"
>>
>> then it seems to not like the @  (my fake hostname is the same length as
>> the real one)
>>
>> PS C:\Xymon> .\xymonsend.ps1 XymonServe @ "C:\Xymon\tserv_proc"
>> Unrecognized token in source text.
>> At line:1 char:28
>> + .\xymonsend.ps1 XymonServe  <<<< @ "C:\Xymon\tserv_proc"
>>     + CategoryInfo          : ParserError: (:) [],
>> ParentContainsErrorRecordEx
>>    ception
>>     + FullyQualifiedErrorId : UnrecognizedToken
>>
>> If anyone can help it would be much appreciated.
>> Regards,
>> Neil.
>>
>>
>> _______________________________________________
>> Xymon mailing list
>> Xymon at xymon.com
>> http://lists.xymon.com/mailman/listinfo/xymon
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150911/c601bf5c/attachment.html>


More information about the Xymon mailing list