Xymon Mailing List Archive search

xymon-client for linux over ssl

list Jeremy Laidman
Mon, 19 Feb 2024 12:14:25 +1100
Message-Id: <CACO=ejzuHixLB==user-be5c0ceccaee@xymon.invalid>

For systems that don't have curl or wget, it may be possible to use openssl
to achieve the same result. This works for me:

XYMONSERVER=xymon.example.com
MSG="status hostname.example.com.linux red `date` bogon check has failed"
MSG="$MSG\r\n"
MSGLEN=${#MSG}
printf "POST /xymon-cgi/xymoncgimsg.cgi HTTP/1.0\r\nHost:
$XYMONSERVER\r\nContent-Length: $MSGLEN\r\n\r\n${MSG}\r\n"; } | openssl
s_client -quiet -connect $XYMONSERVER:443 2>/dev/null | sed '1,/^\r$/d'

J

On Thu, 15 Feb 2024 at 18:17, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:
Hi,

This will send the data over https + protect it with username/password:

- Create server/cgi-binpas directory

- Copy or symlink xymoncgimsg.cgi in that directory

- Create etc/htpasswd file with the htpasswd command

- Add this to xymon-apache.conf (replace <installdir> with the correct
full path) and restart apache:
ScriptAlias /xymon-cgipas/ "<installdir>/server/cgi-binpas/"
<Directory "<installdir>/server/cgi-binpas">
    Options ExecCGI Includes FollowSymLinks
    AuthType Basic
    AuthName "Monitoring Client'
    AuthUserFile "<installdir>/server/etc/htpasswd"
    Require valid-user
</Directory>

- Use this in the xml configiration file on the windows client:
   <serverUrl>https://x.x.x.x/xymon-cgipas/xymoncgimsg.cgi</serverUrl>;
   <serverHttpUsername>client</serverHttpUsername>
   <serverHttpPassword>client</serverHttpPassword>

For Linux or AIX, I have some scripts and config files as drop-in
replacement for the xymon binary based on wget or curl. If you are
interested, I can send it off-list.


Stef

On 2024-02-15 05:48, Kris Springer wrote:
Can anyone advise on the method to have the Debian xymon-client send its
data to the Server using SSL instead of port 1984?

Thanks so much
---
Kris Springer