From owner-freebsd-isdn Wed Aug 22 13:21:58 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from ns.raditex.se (mail.raditex.se [192.5.36.21]) by hub.freebsd.org (Postfix) with ESMTP id 09C1A37B42B for ; Wed, 22 Aug 2001 13:21:27 -0700 (PDT) (envelope-from gh@raditex.se) Received: from gandalf.raditex.se (gandalf.raditex.se [192.5.36.18]) by ns.raditex.se (8.9.3/8.9.3) with ESMTP id WAA05234 for ; Wed, 22 Aug 2001 22:21:25 +0200 (CEST) (envelope-from gh@raditex.se) Date: Wed, 22 Aug 2001 22:21:25 +0200 (CEST) From: G Hasse X-Sender: gh@gandalf.sickla.raditex.se To: freebsd-isdn@FreeBSD.ORG Subject: Plotting util Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello everyboddy! I have hade great problems with a line that goes up and down all the time. The solution to this was to change to bind9 where there is directives to handle dailed-up connections. I put the directives dialup yes; heartbeat-interval 1440; in the named.conf files and spontainious dialut died away completly. So now I can have isdnd running all the time. I also hacked a small script that makes a graph from the logfile, and I run this daily from cron. The script needs gnuplot ( /usr/ports/math/gnuplot ). ---------------------------------------- #!/bin/sh #------------------------------------------------------ # # Prints a postscript graph of the connectiontimes # for your ISDN line # # gh@raditex.se # #------------------------------------------------------ # # Change to suite your needs # # Use the standard format on the accouning file LOGFILE=/var/log/isdnd.acct TEMPFILE=/tmp/isdnlog.tmp PRINTFILE=/tmp/isndprn.ps # One day back GRAPHDATE=`date -j -v -1d "+%d.%m.%Y"` grep $GRAPHDATE /var/log/isdnd.acct | \ awk '{ print $2 "\t0\n" $2"\t1\n" $5 "\t1\n" $5\"\t0" }' > $TEMPFILE /usr/local/bin/gnuplot <--------------------------------------------------- I hope this can help some out there. Göran Hasse ---------------------------------------------------------------- Göran Hasse email: gh@raditex.se Tel: +46 8 694 92 70 Raditex AB http://www.raditex.se Fax: +46 8 442 05 91 Sickla Alle 7, 1tr Mob: 070-5530148 131 34 NACKA, SWEDEN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message