Port check from server
list Josh Luthman
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
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
list Charles Jones
▸
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
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> 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
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
▸
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, JoshYou 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
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
list Mike Rowell
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
▸
-----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
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... :)
▸
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
▸
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
The way I read it, the test had to have some kind of message like that. Sounds good, thanks a bunch Henrik!
▸
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