[mrtg] [DF 993k-2kd0k] Graph thinks it's Gigabytes instead of Bytes

i @ downfire i at downfire.com
Wed Oct 6 03:58:58 MEST 2004


Hello,

I'v got a bit of a problem. I'v made a script so i can see in a graph how
many bytes got in and got out.
This works, but the problem is that the graph thinks it GB instead of B. I
have been all over internet and in the doc but i can't seem to find this.

This is the script:

[MRTG]
Target[in_packets]: `/usr/local/mrtg-2/bin/iptab`
MaxBytes[in_packets]: 1500
Title[in_packets]: Inbound packets

PageTop[in_packets]: <h1>Inbound Packet Stats</h1>
Options[in_packets]:
growright,nopercent,gauge,nobanner,nolegend,pngdate,noborder
Suppress[in_packets]: ymw
PNGTitle[in_packets]: INBOUND BYTES
Background[in_packets]: #FFFFFF
[/MRTG]

[IPTAB]
#!/bin/bash
IPTABLES="/sbin/iptables"
$IPTABLES -nvxL | grep INPUT | awk '{ print $7 }'
IPTABLESi="/sbin/iptables"
$IPTABLESi -nvxL | grep OUTPUT | awk '{ print $7 }'
[/IPTAB]

Does someone know how i tell the MRTG script that it's Bytes and not
GigaBytes ?

Thanks,
Bastiaan

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list