>Hi,
> I have a need to keep statistics on how many times a service port has been
>hit. For example, I would like to know how many times a POP3 or FTP port session has
>been made on a particular machine. Any suggestions would be appreciated.
> Thanks,
> Neil :-)
ftp to ftp.ciesin.org under /dropbox/jblaine filename serchk.tar.gz
Enjoy
The README:
Service Checker, serchk
=======================
serchk, the service checker, is a Perl script which reads in
a simple configuration file and checks defined hostnames and
ports for connectivity. As you may well have noticed, pinging
a host does not mean it is usable. Machines can be completely
wedged and respond to ping requests just fine. serchk is useful
to solve this problem (and hopefully many others) because it
will connect to a normal interactive port (if you tell it to),
which is a much more reassuring sign that a host is fully up
and functioning. serchk is not limited to connecting to the
standard telnet port though, read on!
Usage is as such:
serchk [config_file]
If no config file is specified on the command line, /etc/serchk.cf
is used (see Installation below).
Tested Architectures
====================
serchk should work fine on any system where Perl 4.03x is installed
properly.
Installation
============
Edit the file ``serchk'' and substitute the location of your perl
binary on line 1.
Edit the file Makefile in this directory. See the comments there.
Type 'make' and follow any steps which show up on your screen as
a result of this process.
Bugs
====
The double quote character " is used as a delimiter in the config
file, and as such cannot be used inside any of the expressions
currently.
Copyright
=========
serchk is freely distributable with no modifications. If you hack
on serchk at your site, I ask that you do not distribute your code.
If you have relevant and/or useful patches to send me, please do:
--
Jeff Blaine le0 ni0 et0 en0 ie0 lan0 de0 ec0 ex0 il0 ix0 enet0
CIESIN Operations ae0 eth0 ln0 -- Standardize UNIX