diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2014-03-15 01:03:18 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2014-03-15 01:03:18 -0700 |
commit | 8823d904b7e7b902af6c0fb44dc1d726278f732d (patch) | |
tree | 62fc68b6bd6d7749a93502cb6fe611b3a0d568f2 /sbin | |
parent | 5b256ee788b6a2cf9484eb42420acb8926e17426 (diff) | |
download | iptables-rrdtool-8823d904b7e7b902af6c0fb44dc1d726278f732d.tar.gz iptables-rrdtool-8823d904b7e7b902af6c0fb44dc1d726278f732d.zip |
Make more, bigger, prettier, informativer graphs
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/iptables-rrdtool | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/iptables-rrdtool b/sbin/iptables-rrdtool index b45fe59..70c56e8 100644 --- a/sbin/iptables-rrdtool +++ b/sbin/iptables-rrdtool @@ -43,7 +43,10 @@ for table in $(cat /proc/net/ip_tables_names); do rrdtool update "${RRDDIR}/${name}.rrd" "N:${counter}" if [ "${GENPNG}" = "1" ]; then - rrdtool graph "${PNGDIR}/${name}.png" --start -2d DEF:rule="${RRDDIR}/${name}.rrd":rule:AVERAGE LINE1:rule#0080ff:rule + rrdtool graph "${PNGDIR}/${name}:d.png" --full-size-mode -w 640 -h 480 --units=si --logarithmic --start -1d DEF:rule="${RRDDIR}/${name}.rrd":rule:AVERAGE LINE1:rule#0080ff:rule VDEF:total=rule,TOTAL GPRINT:total:Total\\\:%8.3lf\ %s + rrdtool graph "${PNGDIR}/${name}:w.png" --full-size-mode -w 640 -h 480 --units=si --logarithmic --start -1w DEF:rule="${RRDDIR}/${name}.rrd":rule:AVERAGE LINE1:rule#0080ff:rule VDEF:total=rule,TOTAL GPRINT:total:Total\\\:%8.3lf\ %s + rrdtool graph "${PNGDIR}/${name}:m.png" --full-size-mode -w 640 -h 480 --units=si --logarithmic --start -1m DEF:rule="${RRDDIR}/${name}.rrd":rule:AVERAGE LINE1:rule#0080ff:rule VDEF:total=rule,TOTAL GPRINT:total:Total\\\:%8.3lf\ %s + rrdtool graph "${PNGDIR}/${name}:y.png" --full-size-mode -w 640 -h 480 --units=si --logarithmic --start -1y DEF:rule="${RRDDIR}/${name}.rrd":rule:AVERAGE LINE1:rule#0080ff:rule VDEF:total=rule,TOTAL GPRINT:total:Total\\\:%8.3lf\ %s fi fi done |