Xymon Mailing List Archive search

How to test remote ports

list Henrik Størner
Thu, 19 Jan 2023 07:37:32 +0100
Message-Id: <user-666d59f13fe4@xymon.invalid>

Hi,

why are you trying to do it with a client-side test? 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/

If you must do it client-side, then you should add a test for port 80 being in LISTEN state. There are several examples of that on the Xymon demo site https://www.xymon.com/xymon-cgi/viewconf.sh?client like this which tests for port 6543 running a MythTV service

HOST=goya.hswn.rv13
	PORT LOCAL=%[\.:]6543 STATE=LISTEN TEXT=myth


Regards,

Henrik


Den 17.01.2023 kl. 23.29 skrev Christoph Zechner:
Hi,

I've been trying to establish a remote port check, but cannot get it to work. After reading the man pages and the corresponding topics on the mailing list, I've configured a test like this:

PORT REMOTE=1.2.3.4:80

but the remote port always comes back as down, even though it is up. Am I doing something wrong? Local port checks all work perfectly, only the remote ones do not.

Am I doing something wrong here?

Context: I am using local mode on all clients, so I'm putting all my checks in /etc/xymon/localclient.cfg, but this should not effect this check, right?

Thanks in advance!

Best regards
Christoph Zechner