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]
13 #---------------------------------------------------------------------------
15 #---------------------------------------------------------------------------
16 # this is the entry for mrtg in mrtg.cfg
17 #---------------------------------------------------------------------------
18 # Target[ernie.cstat.isp0]: `/usr/local/etc/mrtg/util/mrtg-isp0.sh`
19 # MaxBytes[ernie.cstat.isp0]: 10
20 # AbsMax[ernie.cstat.isp0]: 200
21 # Title[ernie.cstat.isp0]: isp0: callouts / callbacks
22 # PageTop[ernie.cstat.isp0]: <H1> isp0: callouts /callbacks </H1>
23 # Options[ernie.cstat.isp0]: gauge, nopercent, integer
24 # YLegend[ernie.cstat.isp0]: co / cb
25 # ShortLegend[ernie.cstat.isp0]: n
26 # Legend1[ernie.cstat.isp0]: callouts
27 # Legend2[ernie.cstat.isp0]: callbacks
28 # LegendI[ernie.cstat.isp0]: callouts:
29 # LegendO[ernie.cstat.isp0]: callbacks:
30 # WithPeak[ernie.cstat.isp0]: ymwd
32 #---------------------------------------------------------------------------
33 # this is the shell script run by mrtg
34 #---------------------------------------------------------------------------
35 if [ -r /var/log/isdn/callouts.isp0 ]
37 cat /var/log/isdn/callouts.isp0 | awk '{print $3}'
42 if [ -r /var/log/isdn/callbacks.isp0 ]
44 cat /var/log/isdn/callbacks.isp0 | awk '{print $3}'