It's backward of that: the string in the command line worked (I didn't have to double-quote it because I wasn't running xymon from the shell, but from a Unix "system" call, via perl). When I tried the same string being fed via STDIN (passing - in the command line), it got processed up to the first newline. I also tried the --merge parameter (sending the first line in the commandline and the rest via stdin), but that errored out.
It's not a big problem - I just reverted to using the command line. Only rarely there is so much data that it exceeds the command line limits. Actually this was the first time i saw this happen, in years.
g
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of John Thurston
Sent: Friday, March 30, 2018 11:26
To: xymon at xymon.com
Subject: Re: [Xymon] xymon communications program (server/bin/xymon) reading from stdin - first line only?
I suspect you need to double-quote the final string. Without that, I suspect the xymon command is only reading everything up to the first line feed.
Can you provide an explicit example? ie "This worked...this didn't"
--
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
On 3/29/2018 9:03 AM, Ribeiro, Glauber wrote:Recently I tried to modify one of my xymon extension scripts, which passes the message data to the xymon command on the command line, to pass it via STDIN instead.
It worked (sort of), but I was not able to get xymon to process more than the first line of the message (the one with color, status, timestamp). The rest of the message seemed to be ignored.