handyman1983
Hacker
- Registriert
- 14. März 2010
- Beiträge
- 444
- Reaktionspunkte
- 30
- Punkte
- 88
Zu früh gefreut :
bekomme das cccam Traffic nicht ans laufen :
root@alix /etc/munin/plugins > /etc/munin/plugins/cccam_traffic
traffictotal.value 4532533
trafficin.value kbits/s;
trafficout.value 3
root@alix /etc/munin/plugins >
TCP/12000: 62321 packets, <- text bis zum 1. Komma
4532533 bytes total, <- text bis zum 2. Komma
5,49 kbits/s; 32439 packets, <- text bis zum 3. Komma
2540015 bytes incoming, <- text bis zum 4. Komma
3,08 kbits/s; 29882 packets, <- text bis zum 5. Komma
1992518 bytes outgoing, <- text bis zum 6. Komma
2,42 kbits/s
cut -f2 -d"," -> 4532533 bytes total, -> cut -f2 -d" " -> 4532533
cut -f4 -d"," -> 2540015 bytes incoming, -> cut -f2 -d" " -> 2540015
cut -f6 -d"," -> 1992518 bytes outgoing, -> cut -f2 -d" " -> 1992518
Unable to graph /var/lib/munin/cyres/dockstar.xxxxxx.net-oscam_traffic-trafficout-d.rrd: Could not make sense out of '${TOTALdraw}:g7404f635c95693a#22ff22:Total traffic '
Unable to graph /var/lib/munin/cyres/dockstar.xxxxxx.net oscam_traffic-trafficout-d.rrd: Could not make sense out of '${TOTALdraw}:g7404f635c95693a#22ff22:Total traffic '
if [ "$1" = "config" ]; then
echo "graph_info This graph shows the Oscam Traffic on the $NETDEVICE network interface."
echo 'graph_title Oscam Traffic'
echo 'graph_category Oscam'
echo 'graph_args --base 1024 -l 0'
echo 'graph_vlabel Bytes/sec'
if [ "$WITHtotal" = "yes" ]; then
echo 'graph_order traffictotal trafficin trafficout'
echo 'traffictotal.label Total traffic'
echo 'traffictotal.type DERIVE'
echo 'traffictotal.draw [COLOR=Red]'$TOTALdraw'[/COLOR]'
echo 'traffictotal.min 0'
echo 'traffictotal.cdef traffictotal,8,*'
else
echo 'graph_order trafficin trafficout'
fi
echo 'trafficin.label traffic IN'
echo 'trafficin.type DERIVE'
echo 'trafficin.draw LINE1'
echo 'trafficin.min 0'
echo 'trafficin.cdef trafficin,8,*'
echo 'trafficout.label traffic OUT'
echo 'trafficout.type DERIVE'
echo 'trafficout.draw LINE1'
echo 'trafficout.min 0'
echo 'trafficout.cdef trafficout,8,*'
exit 0
fi
LOG="$IPTRAFlogdir/tcp_udp_services-${NETDEVICE}.log"
[COLOR=Red]TRAFFIC=$(grep "TCP/$CCCAMPORT" $LOG | tail -n1 | cut -f1 -d";" | cut -f4 -d" ")
TRAFFICIN=$(grep "TCP/$CCCAMPORT" $LOG | tail -n1 | cut -f2 -d";" | cut -f4 -d" ")
TRAFFICOUT=$(grep "TCP/$CCCAMPORT" $LOG | tail -n1 | cut -f3 -d";" | cut -f4 -d" ")
[/COLOR]
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?
Wir verwenden Cookies und ähnliche Technologien für folgende Zwecke:
Akzeptieren Sie Cookies und diese Technologien?