2 #---------------------------------------------------------------------------
4 # collect callout and callback statistics for the isp0 i/f
6 # enable budget callout and callback restrictions and file
7 # rotation in the isdnd.rc file.
9 # last edit-date: [Fri May 25 15:22:45 2001]
11 # $FreeBSD: src/share/examples/isdn/contrib/mrtg-isp0.sh,v 1.1.2.1 2001/08/10 14:59:48 obrien Exp $
12 # $DragonFly: src/share/examples/isdn/contrib/mrtg-isp0.sh,v 1.2 2003/06/17 04:36:57 dillon Exp $
14 #---------------------------------------------------------------------------
16 #---------------------------------------------------------------------------
17 # this is the entry for mrtg in mrtg.cfg
18 #---------------------------------------------------------------------------
19 # Target[ernie.cstat.isp0]: `/usr/local/etc/mrtg/util/mrtg-isp0.sh`
20 # MaxBytes[ernie.cstat.isp0]: 10
21 # AbsMax[ernie.cstat.isp0]: 200
22 # Title[ernie.cstat.isp0]: isp0: callouts / callbacks
23 # PageTop[ernie.cstat.isp0]: <H1> isp0: callouts /callbacks </H1>
24 # Options[ernie.cstat.isp0]: gauge, nopercent, integer
25 # YLegend[ernie.cstat.isp0]: co / cb
26 # ShortLegend[ernie.cstat.isp0]: n
27 # Legend1[ernie.cstat.isp0]: callouts
28 # Legend2[ernie.cstat.isp0]: callbacks
29 # LegendI[ernie.cstat.isp0]: callouts:
30 # LegendO[ernie.cstat.isp0]: callbacks:
31 # WithPeak[ernie.cstat.isp0]: ymwd
33 #---------------------------------------------------------------------------
34 # this is the shell script run by mrtg
35 #---------------------------------------------------------------------------
36 if [ -r /var/log/isdn/callouts.isp0 ]
38 cat /var/log/isdn/callouts.isp0 | awk '{print $3}'
43 if [ -r /var/log/isdn/callbacks.isp0 ]
45 cat /var/log/isdn/callbacks.isp0 | awk '{print $3}'