This update of xymonq adds the possibility to prefix the results with the hostname. The -S-option (that added the line HOST=<hostname> above the results) is deprecated as it made parsing needlessly difficult.

An example of the old behaviour:

$ xymonq -H google.com -q xymondlog -T http
www.google.com|http|green||1516618364|1516956137|1516957937|0|0|127.0.0.1||||N|
green Fri Jan 26 09:42:16 2018: OK ; OK

&green http://google.com/ - OK

Adding -p prefixes the output with the hostname:

$ xymonq -H google.com -q xymondlog -T http -p
www.google.com: www.google.com|http|green||1516618364|1516956137|1516957937|0|0|127.0.0.1||||N|
www.google.com: green Fri Jan 26 09:42:16 2018: OK ; OK
www.google.com:
www.google.com: &green http://google.com/ - OK

The (now deprecated) -S option produced harder to parse output:

$ xymonq -H google.com -q xymondlog -T http -S
HOST=www.google.com
www.google.com|http|green||1516618364|1516956137|1516957937|0|0|127.0.0.1||||N|
green Fri Jan 26 09:42:16 2018: OK ; OK

&green http://google.com/ - OK

For more details see the project-page: xymonq.