[Xymon] How to test remote ports

Christoph Zechner zechner at vrvis.at
Thu Jan 19 10:38:21 CET 2023


On 19/01/2023 08:43, Henrik Juul Størner wrote:
> Den 19.01.2023 kl. 08.13 skrev Christoph Zechner:
>>> why are you trying to do it with a client-side test? 
>>
>> Because I thought this was the idea behind the remote port check, but 
>> I now see my error here.
>>
>>> You should just add an http test to the configuration and run it as a 
>>> network test. In hosts.cfg:
>>>
>>> 1.2.3.4 myhost  # http://1.2.3.4/
>>
>> This does not test for the port though.
> 
> The hosts.cfg entry above _does_ test port 80 by establishing a 
> connection to the port, sending an http request and verifying the response.
> 
> 
>> 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?
> 
> The protocols.cfg file lists the various network protocols that Xymon 
> knows about (and you can add your own, if you need any).
> 
> Port 3389 is the RDP port, which is one of the protocols Xymon knows. So 
> to test for that, use
> 
> 1.2.3.4 myhost # rdp
> 
> Add as many network tests as you like, eg. if you want to test host 
> 1.2.3.4 for both http and RDP:
> 
> 1.2.3.4 myhost # http://1.2.3.4/ rdp

Thank you, this was the information I needed. I forgot about the builtin 
protocols, rdp test is working fine now!

Best regards
Christoph


> 
> 
> Regards,
> 
> Henrik
> 
> 


More information about the Xymon mailing list