<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Den 19.01.2023 kl. 08.13 skrev
Christoph Zechner:<br>
</div>
<blockquote type="cite"
cite="mid:129af7a4-9a07-7122-6c83-62d36b5a1570@wurzelmann.at">
<blockquote type="cite">why are you trying to do it with a
client-side test? </blockquote>
<br>
Because I thought this was the idea behind the remote port check,
but I now see my error here.
<br>
<br>
<blockquote type="cite">You should just add an http test to the
configuration and run it as a network test. In hosts.cfg:
<br>
<br>
1.2.3.4 myhost # <a class="moz-txt-link-freetext" href="http://1.2.3.4/">http://1.2.3.4/</a>
<br>
</blockquote>
<br>
This does not test for the port though.
<br>
</blockquote>
<p>The hosts.cfg entry above <u>does</u> test port 80 by
establishing a connection to the port, sending an http request and
verifying the response.<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:129af7a4-9a07-7122-6c83-62d36b5a1570@wurzelmann.at">Port
80 was just an example for a random port, if I wanted to check
port 3389 on a remote Windows machine, how would I do that? <br>
</blockquote>
<p>The protocols.cfg file lists the various network protocols that
Xymon knows about (and you can add your own, if you need any). <br>
</p>
<p>Port 3389 is the RDP port, which is one of the protocols Xymon
knows. So to test for that, use</p>
<p>1.2.3.4 myhost # rdp</p>
<p>Add as many network tests as you like, eg. if you want to test
host 1.2.3.4 for both http and RDP:</p>
<p>1.2.3.4 myhost # <a class="moz-txt-link-freetext" href="http://1.2.3.4/">http://1.2.3.4/</a> rdp<br>
</p>
<p><br>
</p>
<p>Regards,</p>
<p>Henrik</p>
<p><br>
</p>
</body>
</html>