Page 3 of 6 FirstFirst 12345 ... LastLast
Results 31 to 45 of 90

Thread: Graphical IP accounting

  1. #31
    Hallo all

    is this allstats working on a gx with wl500g-1.9.2.7-5a ?

    if i start account_traffic.sh me got a error from sed
    Code:
    # ./account_traffic.sh
    setting/updating usage counter files
    sed: bad format in substitution expression
    sed: bad format in substitution expression
    sed: bad format in substitution expression
    sed: bad format in substitution expression
    sedsed: bad format in substitution expression
    : bad format in substitution expression
    append usage to day dat files
    tailing counter files
    finished.
    and the cgi display a "Segmentation fault"

    Anyone with the same error and had fixed this ?

    Best Regards

  2. #32
    found the "Segmentation fault" error but have one more q.

    Is there some tuning that not only IE display the graph correct ?
    Me have some prob with Firefox.


    Best Regards

  3. #33

    Problem with create iptables entries

    Code:
    [admin@WL500g accounting]$ ./add_iptables.sh  
    ./add_iptables.sh: 3: awk: not found  
    [admin@WL500g accounting]$
    Plese help

  4. #34
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by connic
    Code:
    [admin@WL500g accounting]$ ./add_iptables.sh  
    ./add_iptables.sh: 3: awk: not found  
    [admin@WL500g accounting]$
    Plese help
    Upgrade to latest firmware.

  5. #35
    Quote Originally Posted by Oleg
    Upgrade to latest firmware.
    I have in WL500g firmvare version 1.9.2.7-4. This wersion it not supports?

    Now notification:
    Code:
    [admin@WL500g accounting]$ ./add_iptables.sh
    ./add_iptables.sh: 3: /tmp/harddisk/accounting: Permission denied

  6. #36
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Quote Originally Posted by connic
    I have in WL500g firmvare version 1.9.2.7-4. This wersion it not supports?
    Upgrade to 1.9.2.7-6b.

  7. #37
    Quote Originally Posted by Oleg
    Upgrade to 1.9.2.7-6b.
    With firmware 1.9.2.7-6b:

    Code:
    [admin@WL500g accounting]$ ls  
      
      account_traffic.sh  
      graph_day.awk       
      mkcron.sh  
      accounting_v2.tar   
      graph_month.awk     
      monthtot.sh  
      add_iptables.sh     
      httpd.conf          
      rem_iptables.sh  
      daytot.sh           
      init.sh             
      usage.sh  
      graph_all.awk      
      ipaddress.txt
    
    [admin@WL500g accounting]$ ./add_iptables.sh  
     ./add_iptables.sh: 3: /tmp/harddisk/accounting:Permission denied 
    where's AWK applet? In file "init.sh" is line with text:
    # pointer to AWK applet
    AWK="AWK"

    I Attache main files for verification.
    Attached Files Attached Files
    Last edited by connic; 02-07-2005 at 22:17.

  8. #38
    Join Date
    Jun 2004
    Location
    Delft, The Netherlands
    Posts
    62
    Just remove the following lines from add_iptables.sh, because they are not used:
    Code:
    # ipnumbers of PC's in LAN
    ipnumbers=`cat $accountdir/ipaddress.txt| $AWK '{print $2 }'`
    Have you installed the scripts in the /tmp/harddisk/accounting directory? If not, change installation directory in init.sh accordingly.

    BTW: I am working at a graphical version based on rddtools. It generates nice usage graphs in gif format. Will post things soon!

  9. #39
    Ahh, thats cool if you can make one with rddtools )

    Regards

  10. #40
    There is allready something for openwrt and rrd

    http://wiki.freifunk-leipzig.public-...tzwerkStatisik

  11. #41
    Join Date
    Jun 2004
    Location
    Delft, The Netherlands
    Posts
    62
    I tried to install these packages. Everything works fine, except the libpng or other graphical libraries are not included. Any feature leading to real graphics causes a 'segmentation fault'. Therefore, I compiled the rrdtool myself and used static linking to the libraries. Bin's included.
    Later I will post some scripts to log traffic to different pc's in lan (based on add_iptables.sh). The graphs are generated on the asus and then I FTP the resulting graphs and databases regularly to a webserver with a proper access to the internet.
    Attached Files Attached Files
    Last edited by sodb; 05-07-2005 at 23:59.

  12. #42
    Join Date
    Feb 2005
    Location
    Germany - Frankfurt a.M.
    Posts
    299
    I want to use this feature, too.


    But what am I have to do to install this?

    Should I use the wiki-instructions?


    sodb, is your tool ready to use?
    (How to use this?)
    WL-500gP => 1.9.2.7-7g (2007-04-06)
    Running: thttpd, php 5.1, vsftp, rrdtool

    http://onlinefussballmanager.de/userbar/0/53647.png

  13. #43

    :-)

    Quote Originally Posted by britnet
    I want to use this feature, too.


    But what am I have to do to install this?

    Should I use the wiki-instructions?


    sodb, is your tool ready to use?
    (How to use this?)
    better is using RRD tools from www.macsat.com . Look at http://www.home.karneval.cz/0220603501/zdenek . There is showed what can you do do with rrd tool. But it is only in Czech language. But you will understand it. Maybe :-)

  14. #44
    Excelent work, this is what I need.
    Can you post more details of how do you do this? Scripts. Do you change iptables?

  15. #45

    8-)

    Hi,

    please KAMILEK, pleaseee .. I would like to have the same possibilities to put the individual IPs into the graph .... As a normal RRDToll with the WAN/LAN/WLAN accounting working fine, but yours are BETTER

    Prosim, hodne prosim

    WiZi from CB

Page 3 of 6 FirstFirst 12345 ... LastLast

Posting Permissions

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