[Xymon] https URL in xymon recipient field causes 'Cannot resolve hostname' error
SebA
spah at syntec.co.uk
Fri Oct 13 15:46:06 CEST 2017
Hi to you all,
It was suggested on this list recently that a way of getting Xymon client
sending encrypted messages to the server using the currently Staple version
would be to use *xymoncgimsg.cgi* on the web server over TLS. The xymon
man page says one can use a URL in the recipient field for HTTP transport.
There is no mention of HTTPS anyway in the man pages, but because it was
suggested on the list I have tried it and it does not work:
It seems to try and resolve https as hostname 'https' rather than
interpreting it as a URL. For example:
$ xymon https://www.google.com/xymon-cgi/xymoncgimsg.cgi "test"
2017-10-13 12:55:10.323994 Whoops ! Failed to send message (Cannot resolve
hostname)
2017-10-13 12:55:10.324124 -> Cannot determine IP address of message
recipient https
$ xymon "https\://www.google.com/xymon-cgi/xymoncgimsg.cgi" "test"
2017-10-13 12:55:33.408007 Whoops ! Failed to send message (Cannot resolve
hostname)
2017-10-13 12:55:33.408073 -> Cannot determine IP address of message
recipient https\
I wonder if there is a trivial fix for this?
P.S. Using plain old http does work:
$ xymon http://www.google.com/xymon-cgi/xymoncgimsg.cgi "test"
<!DOCTYPE html>
<html lang=en>
...
Many thanks,
SebA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20171013/517f2f6f/attachment.html>
More information about the Xymon
mailing list