Xymon Mailing List Archive search

ftp test with ":q" parameter

4 messages in this thread

list John Thurston · Thu, 14 Sep 2017 11:28:40 -0800 ·
I found this in my hosts.cfg and can't figure out what I was trying do:
   0.0.0.0 foo.bar.com # ftp:21:q

I can't find any documentation for the :q parameter.
I'm looking in source, but can't find now where those are parsed.

What does/did this :q do? Anything?
-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
list Brian Scott · Fri, 15 Sep 2017 11:17:25 +1000 ·
vi command to quit while in insert mode perhaps?
quoted from John Thurston


On 15/9/17 5:28 am, John Thurston wrote:
I found this in my hosts.cfg and can't figure out what I was trying do:
  0.0.0.0 foo.bar.com # ftp:21:q

I can't find any documentation for the :q parameter.
I'm looking in source, but can't find now where those are parsed.

What does/did this :q do? Anything?
list Schminke_Erik_D · Fri, 15 Sep 2017 09:48:35 -0500 ·
I concur with Brian.  The most likely reason for the ":q" was an errant vi
quit command.

Looks like a ":s" would be valid.  I'll refer you to the manpage for
host.cfg (
http://xymon.sourceforge.net/xymon/help/manpages/man5/hosts.cfg.5.html),
under the heading "Simple Network Tests".  My reading of that suggests that
you would use that configuration directive to tell Xymon not to send any of
the test data defined for the service from the protocols.cfg file.

I'll also point out, that the :21 isn't necessary either.  This would only
be necessary if you wanted to test a service that would be running on a
non-standard port.  The example given is ssh.  Ordinarily, that runs on
port 22, but if you wanted to perform an SSH test listening on port 8022,
you would use "ssh:8022".

The default port number is defined in protocols.cfg (
http://xymon.sourceforge.net/xymon/help/manpages/man5/protocols.cfg.5.html)
.  If a port number for a defined service is not found, it will use what is
defined in /etc/services, if one can be found.


Erik D. Schminke | Associate Systems Programmer
Hormel Foods Corporation | One Hormel Place | Austin, MN XXXXX
Phone: (XXX) XXX-XXXX
user-15513f33c451@xymon.invalid | www.hormelfoods.com
list John Thurston · Fri, 15 Sep 2017 08:03:50 -0800 ·
quoted from Schminke_Erik_D
On 9/15/2017 6:48 AM, user-15513f33c451@xymon.invalid wrote:
I concur with Brian.  The most likely reason for the ":q" was an errant vi
quit command.
I agree. I use nano on this host, but vi on most others.
quoted from Schminke_Erik_D
Looks like a ":s" would be valid.  . .
I'll also point out, that the :21 isn't necessary either.  This would only
be necessary if you wanted to test a service that would be running on a
non-standard port.  . . .
And for this host, I do have additional tests for the ftp service 
against other ports. In this case the port designation isn't required 
from a functional standpoint, but it is from a documentation perspective.
quoted from John Thurston

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

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