Results 1 to 15 of 84

Thread: RRDTool Traffic Graph Tutorial - Extremely easy to follow !

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #28
    hello, the line
    Code:
    bash: ./rrdstorm.sh: /bin/bash: bad interpreter: No such file or directory
    says it all. Bash should not be installed in /bin. Are you sure you installed bash via ipkg? Because bash is an optional package and is not installed by default. Also if you want to properly display disk data you should install coreutils. Check this tutorial.
    Short said:

    Get rrdstorm.sh from http://wl500ginfo.pastebin.com/f789cf38a and edit ./rrdstorm.sh for proper grep functions in disk section
    Code:
    RRDuVAL[5]='
    SP=$(/opt/bin/coreutils-df "-B1")
    echo -n $(echo "$SP"|grep opt|awk "{print \$3\":\"\$2}"):
    echo -n $(echo "$SP"|grep mnt|awk "{print \$3\":\"\$2}")
    echo
    '
    mnt should be changed to whatever you use for mount.
    In shell
    Code:
    ipkg install coreutils
    ipkg install bash
    ipkg install cron
    bash rrdstorm.sh create 0 1 3 4 5 6
    Then edit crontab
    Code:
    vi /opt/ect/crontab
    with these values
    Code:
    */1 * * * * admin bash /path to/rrdstorm.sh update 0 1 3 4 5 6
    */22 * * * * admin bash /path to/rrdstorm.sh graph_cron s 0 1 3 4 5 6
    0 */1 * * * admin bash /path to/rrdstorm.sh graph_cron h 0 1 3 4 5 6
    3 */6 * * * admin bash /path to/rrdstorm.sh graph 0 1 3 4 5 6
    and chmod it
    Code:
    chmod 0600 /opt/ect/crontab
    and this is pretty much it. Good luck!
    Last edited by cupacup; 30-07-2008 at 00:46.

Similar Threads

  1. Tutorial, hoe bekijk ik mijn webcam vanaf het internet
    By carl in forum Dutch Discussion - Nederlands
    Replies: 9
    Last Post: 29-06-2009, 16:37
  2. samba and oleg tutorial
    By ddieter in forum WL-500g Q&A
    Replies: 4
    Last Post: 15-02-2008, 14:08
  3. Easy-to use cron-system.
    By macsat in forum WL-500g/WL-500gx Tutorials
    Replies: 3
    Last Post: 29-05-2007, 22:18
  4. Replies: 0
    Last Post: 17-09-2005, 19:34
  5. How can I log the traffic ?
    By exilist in forum WL-500g Q&A
    Replies: 3
    Last Post: 06-06-2004, 10:31

Tags for this Thread

Posting Permissions

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