Date: Tue, 03 Jan 2006 02:06:15 -0800 From: Scott Smith <scott@lackluster.net> To: Halid Faith <maslak@ihlas.net.tr> Cc: freebsd-questions@freebsd.org Subject: Re: check script for tcp connection Message-ID: <43BA4C97.9010507@lackluster.net> In-Reply-To: <019a01c6104a$ec9c7a20$dc96eed5@ihlasnetym> References: <019a01c6104a$ec9c7a20$dc96eed5@ihlasnetym>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Halid Faith wrote: > 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 ? Install the nagios-plugins port. It has scripts to do both of those things (and more). If you want even more functionality, check out the full nagios package. Scott - -- scott@lackluster.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) iD8DBQFDukyXKBeC2yZ3EEsRAtLdAJ41hd+Ti+Lv6HJyURxDXeNHKIJnWQCfRa5y A3d5EKLJrfRYKRq6wbzNqyc= =qRpm -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43BA4C97.9010507>