Xymon Mailing List Archive search

test of pultiple ports for same service on same host

list John Thurston
Wed, 02 Apr 2014 08:11:46 -0800
Message-Id: <user-7ef9d4de583d@xymon.invalid>

On 4/2/2014 4:25 AM, Christian wrote:
Hello!

I would like to monitor the same TCP service, on the same host, but
running on 2 different ports. In fact, I run an MX server and it should be
opened on port 25 (of course), and also on port 587 (for local network
authenticated submissions).

So I would like to monitor, on the same host, SMTP on port 25 and on port
587.

If I write "0.0.0.0 myhost # smtp smtp:587" in "bb-hosts", it does not
work and only the last directive ("smtp:587") is taken into account.

What should I do? Create a new service in file "bb-services" called maybe
"smtp-submission", cloning the "smtp" one and adding the 587 port? Or does
somebody have another solution in mind?
I create an alias to the test name in protocols.cfg like this:
   [ftp]  ==>  [ftp|ftp1|ftp2|ftp3]

Then I can use a line in hosts.cfg like this:
   0.0.0.0  foo.bar.com  # ftp ftp1:2211 ftp2:2212

This reuses all/any of the ftp send/response strings in protocols.cfg 
which is nicer than copy/paste the whole section. The problem with this 
approach is updates to the Xymon application will repair protocols.cfg 
by keeping my modified definition _and_ reinserting the original.

-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska