From owner-freebsd-ports Tue Nov 20 7:25:29 2001 Delivered-To: freebsd-ports@freebsd.org Received: from blueyonder.co.uk (pcow028o.blueyonder.co.uk [195.188.53.124]) by hub.freebsd.org (Postfix) with ESMTP id D4C5C37B405; Tue, 20 Nov 2001 07:25:10 -0800 (PST) Received: from pcow028m.blueyonder.net ([127.0.0.1]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.687.68); Tue, 20 Nov 2001 15:25:03 +0000 Received: from gdmckee.local (unverified) by pcow028m.blueyonder.net (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Tue, 20 Nov 2001 15:24:52 +0000 Received: from [192.168.0.10] (helo=p1000) by gdmckee.local with esmtp (Exim 3.33 #1) id 166ClH-000IUD-00; Tue, 20 Nov 2001 15:24:35 +0000 From: "Gordon McKee" To: Cc: Subject: FreeBSD Port: icmpmonitor-1.1 Date: Tue, 20 Nov 2001 15:24:33 -0000 Message-ID: <002601c171d7$74a0d810$0a00a8c0@p1000> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0027_01C171D7.74A0D810" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0027_01C171D7.74A0D810 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi # $Id: sample.cfg,v 1.4 1999/09/15 06:38:49 lord Exp $ # #Name, ping_interval, max_delay, upcmd, downcmd 193.115.239.1 60 5 "echo 193.115.239.1 up| mail -s 'gw.bryant.co.uk is b ack up' gdm" "sh /root/bin/icmpmonitor/netstatrn && echo 193.115.239.1 has gone down| mail -s 'gw.bryant.co.uk has gone down' gdm" That is my config file - why does the sh /root/bin/icmpmonitor/netstatrn bit not work? This file looks like the following #!/bin/sh /usr/bin/netstat -rn /usr/bin/netstat -m Is this still manitained on sourceforge as the dates are from 1999 or so? Gordon ------=_NextPart_000_0027_01C171D7.74A0D810 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Hi
 
# $Id: = sample.cfg,v=20 1.4 1999/09/15 06:38:49 lord Exp $
#
#Name,  ping_interval,=20 max_delay, upcmd, downcmd
193.115.239.1      = 60  5  "echo 193.115.239.1  up| mail -s 'gw.bryant.co.uk = is=20 b
ack up' gdm" "sh /root/bin/icmpmonitor/netstatrn && echo=20 193.115.239.1 has gone
down| mail -s 'gw.bryant.co.uk has gone down'=20 gdm"
 
That = is my config=20 file - why does the sh /root/bin/icmpmonitor/netstatrn bit not = work?  This=20 file looks like the following
 
#!/bin/sh
 
/usr/bin/netstat=20 -rn
 
/usr/bin/netstat=20 -m
 
Is = this still=20 manitained on sourceforge as the dates are from 1999 or = so?
 
Gordon
------=_NextPart_000_0027_01C171D7.74A0D810-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message