From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,bdccf5d7e2dfa88d X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,bdccf5d7e2dfa88d X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-01-18 06:42:19 PST Path: nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!agate!newsxfer.itd.umich.edu!news.itd.umich.edu!manos.ciesin.org!jblaine From: jblaine@ciesin.org (Jeff Blaine) Newsgroups: comp.unix.osf.osf1,comp.unix.admin Subject: Re: Looking for /etc/services port monitoring tool Date: 18 Jan 1995 14:42:19 GMT Organization: CIESIN -- Consortium for International Earth Science Information Network Distribution: world Message-ID: <3fj9cb$nb3@lastactionhero.rs.itd.umich.edu> References: <3fhdvs$74r@longtail.ibl.bm> NNTP-Posting-Host: manos.ciesin.org Xref: nntp.gmd.de comp.unix.osf.osf1:7403 comp.unix.admin:25177 In article <3fhdvs$74r@longtail.ibl.bm> nmovold@ibl.bm (Neil Movold) writes: > >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@ciesin.org -- Jeff Blaine le0 ni0 et0 en0 ie0 lan0 de0 ec0 ex0 il0 ix0 enet0 CIESIN Operations ae0 eth0 ln0 -- Standardize UNIX