Xymon Mailing List Archive search

Port check from server

10 messages in this thread

list Josh Luthman · Fri, 8 Feb 2008 13:52:08 -0500 ·
Is it possible to test a TCP port on a remote machine with the Hobbit
server?  I have some applications that can't be tested with anything
standard (HTTP, SMTP, etc).  I'm just looking for a basic acknowledgement
that the TCP port is listening on the host being monitored.

Thanks,
Josh

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Rich Smrcina · Fri, 08 Feb 2008 12:59:25 -0600 ·
Yes, if the service is listed in /etc/services.  Use the PORT test.  If it's non-standard, it can always be added.
quoted from Josh Luthman

Josh Luthman wrote:
Is it possible to test a TCP port on a remote machine with the Hobbit server?  I have some applications that can't be tested with anything standard (HTTP, SMTP, etc).  I'm just looking for a basic acknowledgement that the TCP port is listening on the host being monitored.

Thanks,
Josh

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
-- 

Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2008 - Chattanooga - April 18-22, 2008
list Charles Jones · Fri, 08 Feb 2008 12:00:15 -0700 ·
quoted from Josh Luthman
Josh Luthman wrote:
Is it possible to test a TCP port on a remote machine with the Hobbit server?  I have some applications that can't be tested with anything standard (HTTP, SMTP, etc).  I'm just looking for a basic acknowledgement that the TCP port is listening on the host being monitored.

Thanks,
Josh
You could do it at least two ways:
1. Have hobbit client on the remote machine check for the listening port in netstat
2. Define the port in bb-services.cfg and add the tag for the new service to your bb-hosts.

-Charles
list Josh Luthman · Fri, 8 Feb 2008 14:05:31 -0500 ·
I don't see the syntax in bb-hosts, should this be done in
hobbit-clients.cfg?

Josh
quoted from Rich Smrcina

On 2/8/08, Rich Smrcina <user-cf452ff334e0@xymon.invalid> wrote:
Yes, if the service is listed in /etc/services.  Use the PORT test.  If
it's non-standard, it can always be added.

Josh Luthman wrote:
Is it possible to test a TCP port on a remote machine with the Hobbit
server?  I have some applications that can't be tested with anything
standard (HTTP, SMTP, etc).  I'm just looking for a basic
acknowledgement that the TCP port is listening on the host being
monitored.

Thanks,
Josh

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
--
Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2008 - Chattanooga - April 18-22, 2008

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Josh Luthman · Fri, 8 Feb 2008 14:16:30 -0500 ·
I'm after that second option - though when I telnet the port I don't get any
information back, can the test still be accomplished with this?  There are
no welcome messages or anything of the sort =/

Josh
quoted from Charles Jones

On 2/8/08, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
Josh Luthman wrote:
Is it possible to test a TCP port on a remote machine with the Hobbit
server?  I have some applications that can't be tested with anything
standard (HTTP, SMTP, etc).  I'm just looking for a basic
acknowledgement that the TCP port is listening on the host being
monitored.

Thanks,
Josh
You could do it at least two ways:
1. Have hobbit client on the remote machine check for the listening port
in netstat
2. Define the port in bb-services.cfg and add the tag for the new
service to your bb-hosts.

-Charles

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Rich Smrcina · Fri, 08 Feb 2008 13:19:29 -0600 ·
The PORT test is a Hobbit client feature.
quoted from Josh Luthman

Josh Luthman wrote:
I don't see the syntax in bb-hosts, should this be done in 
hobbit-clients.cfg?

Josh

On 2/8/08, *Rich Smrcina* <user-cf452ff334e0@xymon.invalid 
<mailto:user-cf452ff334e0@xymon.invalid>> wrote:

    Yes, if the service is listed in /etc/services.  Use the PORT test.  If
    it's non-standard, it can always be added.

    Josh Luthman wrote:
Is it possible to test a TCP port on a remote machine with the Hobbit
server?  I have some applications that can't be tested with anything
standard (HTTP, SMTP, etc).  I'm just looking for a basic
acknowledgement that the TCP port is listening on the host being
    monitored.

Thanks,
Josh

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
    --
    Rich Smrcina
    VM Assist, Inc.
    Phone: XXX-XXX-XXXX
    Ans Service:  XXX-XXX-XXXX

    user-61add9955ef9@xymon.invalid <http://vmassist.com>;
quoted from Josh Luthman
    http://www.linkedin.com/in/richsmrcina

    Catch the WAVV!  http://www.wavv.org
    WAVV 2008 - Chattanooga - April 18-22, 2008


-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
-- 
Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2008 - Chattanooga - April 18-22, 2008
list Mike Rowell · Fri, 8 Feb 2008 19:25:01 -0000 ·
You could just add the entry to bb-services and add that entry as a
check on the servers...

Such as 


bb-services 

[wints]
  Port 3389

Then in bb-hosts

10.1.0.1 windowsbox # wints

Mike
quoted from Rich Smrcina

-----Original Message-----
From: Rich Smrcina [mailto:user-cf452ff334e0@xymon.invalid] 
Sent: 08 February 2008 19:19
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Port check from server

The PORT test is a Hobbit client feature.

Josh Luthman wrote:
I don't see the syntax in bb-hosts, should this be done in 
hobbit-clients.cfg?

Josh

On 2/8/08, *Rich Smrcina* <user-cf452ff334e0@xymon.invalid 
<mailto:user-cf452ff334e0@xymon.invalid>> wrote:

    Yes, if the service is listed in /etc/services.  Use the PORT
test.  If
    it's non-standard, it can always be added.

    Josh Luthman wrote:
Is it possible to test a TCP port on a remote machine with the
Hobbit
server?  I have some applications that can't be tested with
anything
standard (HTTP, SMTP, etc).  I'm just looking for a basic
acknowledgement that the TCP port is listening on the host
being
    monitored.

Thanks,
Josh

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it,
poorly.
--- Henry Spencer
    --
    Rich Smrcina
    VM Assist, Inc.
    Phone: XXX-XXX-XXXX
    Ans Service:  XXX-XXX-XXXX
    user-61add9955ef9@xymon.invalid <http://vmassist.com>;
    http://www.linkedin.com/in/richsmrcina

    Catch the WAVV!  http://www.wavv.org
    WAVV 2008 - Chattanooga - April 18-22, 2008


-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
-- 
Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2008 - Chattanooga - April 18-22, 2008


This email has been scanned for all viruses by the MessageLabs service.

This email has been scanned for all viruses by the MessageLabs service. 
list Rich Smrcina · Fri, 08 Feb 2008 13:25:45 -0600 ·
It pretty much boils down to where you want to test.

The PORT test that I describe runs at the Hobbit client and uses the Netstat command to show that the listener is posted.  If you believe it, then all is good.

What Charles describes actually checks the connection from the Hobbit server to see if something is there.  The rub is, will something respond... :)
quoted from Josh Luthman

Josh Luthman wrote:
I'm after that second option - though when I telnet the port I don't get any information back, can the test still be accomplished with this?  There are no welcome messages or anything of the sort =/

Josh
-- 
Rich Smrcina
VM Assist, Inc.
Phone: XXX-XXX-XXXX
Ans Service:  XXX-XXX-XXXX
user-61add9955ef9@xymon.invalid
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2008 - Chattanooga - April 18-22, 2008
list Henrik Størner · Fri, 8 Feb 2008 22:33:48 +0100 ·
quoted from Josh Luthman
On Fri, Feb 08, 2008 at 02:16:30PM -0500, Josh Luthman wrote:
I'm after that second option - though when I telnet the port I don't get any
information back, can the test still be accomplished with this?  There are
no welcome messages or anything of the sort =/
Doesn't matter. Unless there's an "expect FOO" then Hobbit doesn't
expect the service to return any data. What you're after is just like
the "qmtp" check in the default bb-services file:

    [qmtp]
        port 209

Just define your service like that, and you can then configure it in
bb-hosts like all the other standard network tests.


Regards,
Henrik
list Josh Luthman · Fri, 8 Feb 2008 16:41:55 -0500 ·
The way I read it, the test had to have some kind of message like that.
Sounds good, thanks a bunch Henrik!
quoted from Henrik Størner

On 2/8/08, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Fri, Feb 08, 2008 at 02:16:30PM -0500, Josh Luthman wrote:
I'm after that second option - though when I telnet the port I don't get
any
information back, can the test still be accomplished with this?  There
are
no welcome messages or anything of the sort =/
Doesn't matter. Unless there's an "expect FOO" then Hobbit doesn't
expect the service to return any data. What you're after is just like
the "qmtp" check in the default bb-services file:

    [qmtp]
        port 209

Just define your service like that, and you can then configure it in
bb-hosts like all the other standard network tests.


Regards,
Henrik

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer