Date: Tue, 3 Jan 2006 13:31:21 +0300 From: "Eric Kamara" <kamara@trueafrican.com> To: "'Halid Faith'" <maslak@ihlas.net.tr> Cc: freebsd-questions@freebsd.org Subject: RE: check script for tcp connection Message-ID: <20060103103659.5639C25F125@mail.trueafrican.com> In-Reply-To: <019a01c6104a$ec9c7a20$dc96eed5@ihlasnetym>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > questions@freebsd.org] On Behalf Of Halid Faith > Sent: Tuesday, January 03, 2006 12:49 PM > To: freebsd-questions@freebsd.org > Subject: check script for tcp connection > > Hello > > I use FreeBSD6.0. I want to use a script to check two or more case. > My first cases are as below; > First case My Server will check the remote ip address alive or not as icmp > Second case My server will connect to other remote ip address as tcp > protocol like connected or not. > > if my server could not see the remote ip address AND not connect tcp > connection, My server will send an email me. > > How can I write a simple script about that ? Why don't you try out monit(/usr/ports/sysutils/monit) in the ports? It can do that and much more and yet is very easy to configure. Regards, Eric
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060103103659.5639C25F125>