Date: Tue, 20 Nov 2001 15:24:33 -0000 From: "Gordon McKee" <gordon@gdmckee.com> To: <nbm@FreeBSD.org> Cc: <ports@FreeBSD.org> Subject: FreeBSD Port: icmpmonitor-1.1 Message-ID: <002601c171d7$74a0d810$0a00a8c0@p1000>
next in thread | raw e-mail | index | archive | help
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <TITLE>Message</TITLE> <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD> <BODY> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D828401915-20112001>Hi</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D828401915-20112001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D828401915-20112001># $Id: = sample.cfg,v=20 1.4 1999/09/15 06:38:49 lord Exp $<BR>#<BR>#Name, ping_interval,=20 max_delay, upcmd, downcmd<BR>193.115.239.1 = 60 5 "echo 193.115.239.1 up| mail -s 'gw.bryant.co.uk = is=20 b<BR>ack up' gdm" "sh /root/bin/icmpmonitor/netstatrn && echo=20 193.115.239.1 has gone<BR>down| mail -s 'gw.bryant.co.uk has gone down'=20 gdm"</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D828401915-20112001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D828401915-20112001>That = is my config=20 file - why does the sh /root/bin/icmpmonitor/netstatrn bit not = work? This=20 file looks like the following</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D828401915-20112001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D828401915-20112001>#!/bin/sh</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D828401915-20112001>/usr/bin/netstat=20 -rn</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D828401915-20112001>/usr/bin/netstat=20 -m</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D828401915-20112001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D828401915-20112001>Is = this still=20 manitained on sourceforge as the dates are from 1999 or = so?</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D828401915-20112001></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D828401915-20112001>Gordon</SPAN></FONT></DIV></BODY></HTML> ------=_NextPart_000_0027_01C171D7.74A0D810-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002601c171d7$74a0d810$0a00a8c0>