Results 1 to 8 of 8

Thread: graphs

  1. #1

    graphs

    if you want to show traffic graphs in your Asus, see http://www.innerhtml.net/graphs

  2. #2
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Is this your brainchild michael?

    Anyway, some additional info: You need the full busybox for this to work on the WL-500g, because it needs awk.

  3. #3
    Join Date
    Jun 2004
    Location
    Delft, The Netherlands
    Posts
    62

    missing core.js

    Hi,

    Seems that core.js is missing from your tarball. Could that be?

    PS
    I have been working on similar scripting for drawing graphs. Mine are logging hourly, daily and montly the traffic of a number of PC's in the LAN from and towards the WAN. Using AWK and SED I generate HTML code drawing traffic in bar graph. After renicing the scripts a bit, I will post them
    PS2
    I compiled a new busybox with awk, crond and crontab also included and selected a few other tools so that size is reasonable compared to full version. Anyone interested?
    Code:
    Currently defined functions:
            [, ash, awk, basename, busybox, busybox_httpd, cat, chmod, chroot,
            cp, crond, crontab, date, dd, df, dmesg, du, echo, egrep, expr,
            false, find, grep, gunzip, gzip, halt, head, ifconfig, init, insmod,
            ip, ipcalc, kill, killall, klogd, ln, logger, login, ls, lsmod,
            makedevs, mkdir, mknod, more, mount, mv, netstat, nslookup, passwd,
            ping, ping6, pivot_root, ps, pwd, reboot, rm, rmdir, rmmod, route,
            sed, sh, sleep, sort, strings, sync, syslogd, tail, tar, tee,
            telnet, telnetd, test, tftp, time, top, touch, traceroute, true,
            udhcpc, umount, uniq, uptime, usleep, uuencode, vi, watch, wc,
            wget, zcat

  4. #4
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Quote Originally Posted by sodb
    I compiled a new busybox with awk, crond and crontab also included and selected a few other tools so that size is reasonable compared to full version. Anyone interested?
    Hmm, both the full busybox and your version will not fit into flash, so they have to be put onto an usbdevice. Why not using the full busybox then? Usbdevices generally have more then enough space available....

  5. #5
    Quote Originally Posted by sodb
    Hi,

    Seems that core.js is missing from your tarball. Could that be?

    [/CODE]
    Ooops. Corrected.

  6. #6
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Hmm, this graph shows the amount of traffic generated by each lan station.

    I am interested in the amount of internet traffic devided into some protocols, like HTTP, FTP, KaZaA etc. This does not have to be specific for each lan station, just WAN traffic. Can this be done with your scripts? If yes, how?

  7. #7
    Join Date
    Jun 2004
    Location
    Delft, The Netherlands
    Posts
    62

    iptables for services

    Because the scripts are based on iptables you can differentiate between different services by using protocol and port number. Of course, the scripts need to be changed accordingly. In the example below, on the wl500, the port definition needs to be replaced by a numeric value (80 for www e.g.):

    Code:
    iptables -A FORWARD -i ppp0 -m tcp -p tcp --sport ftp-data:ftp
    iptables -A FORWARD -o ppp0 -m tcp -p tcp --dport ftp-data:ftp
    iptables -A FORWARD -i ppp0 -m tcp -p tcp --sport smtp
    iptables -A FORWARD -o ppp0 -m tcp -p tcp --dport smtp
    iptables -A FORWARD -i ppp0 -m tcp -p tcp --sport www
    iptables -A FORWARD -o ppp0 -m tcp -p tcp --dport www
    see ip accounting for further details.

  8. #8
    Quote Originally Posted by Styno
    Hmm, this graph shows the amount of traffic generated by each lan station.

    I am interested in the amount of internet traffic devided into some protocols, like HTTP, FTP, KaZaA etc. This does not have to be specific for each lan station, just WAN traffic. Can this be done with your scripts? If yes, how?
    It's possible, , but you have to change definition of chains and awk scripts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •