#!/bin/sh #------------------------------------------------------------------------------ # status.cgi - Display Status of ISDN & DSL # # Creation: 17.01.2001 tg # Last Update: $Id$ # #------------------------------------------------------------------------------ # get main helper functions # set_debug=yes . /srv/www/include/cgi-helper # Functions show_connection_switch () { # Check for channel-bundling route=`imond-send "route" | sed 's/OK //; s/.$//'` links=`imond-send "links $route" | sed 's/OK //; s/.$//'` # Circuits circuits=`imond-send "circuits" | sed 's/.$//; s/OK //'` # check if a circuit is defined case $circuits in 0);; *) comm='' for i in `seq 1 $circuits` do comm=`if [ "$comm" != "" ]; then echo "$comm"; fi; echo "circuit $i"` done circuits=`imond-send "$comm" | grep -n 'OK' | sed 's/^/
$HOSTNAME $_STAT_runningsince: |
---|
1min | 5min | 15min |
---|---|---|
$cpu1m | $cpu5m | $cpu15m |
'$_STAT_lastcall': | ' echo ''$_STAT_from' | '$_STAT_to' | ' echo ''$_MN_date' / '$_MN_time' |
---|---|---|---|
$LASTFROM | $LASTTO | " echo "$LASTTIME |
$_STAT_state | $_STAT_name | $_STAT_direction | $_STAT_ip | $_STAT_ibytes | $_STAT_obytes | $_STAT_onltime |
---|
IP | '$_STAT_dnsname' |
---|---|
$i | $res |
IP | '$_STAT_dnsname' | Port |
---|---|---|
$tmpip | $res | $tmpport |
'$_STAT_state' | '$_STAT_name' | IP | MAC | Interface |
---|---|---|---|---|
$status | $res | $ip/td> | $mac | $dev |