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

Thread: Trouble with RRDTool and updated uClibc

  1. #31
    Quote Originally Posted by Devil-Strike View Post
    1question the graph for mem/cpu is ok but the index.html only shows the 3 original graph wan/lan/wlan how can i add the other grapg mem/cpu?
    Just rename/remove the index.html file and it will be recreated.

  2. #32
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Maybe it should be mentioned again that rrdtool needs Oleg pre 7g firmware
    http://wl500g.dyndns.org/7g/

    I have noticed that PATH should be added for graphs in rrdtool.sh. That's whi I've included the file.

  3. #33
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    Code:
    rddtool.sh started at Wed Jan 24 10:10:01 MET 2007
    LOAD: 0.07
    MEM  -> USED: 11440128, CACHE: 16453632, FREE: 2936832
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 3177309   out: 2832967 
    LAN -> in: 2743646   out: 4249893
    WLAN -> in: 0   out: 419446
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    rddtool.sh finished at Wed Jan 24 10:10:51 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Wed Jan 24 10:15:01 MET 2007
    LOAD: 0.01
    MEM  -> USED: 11538432, CACHE: 16097280, FREE: 3194880
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 3768712   out: 3398853 
    LAN -> in: 3272460   out: 4916136
    WLAN -> in: 0   out: 493737
    rddtool.sh finished at Wed Jan 24 10:15:04 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Wed Jan 24 10:20:01 MET 2007
    LOAD: 0.04
    MEM  -> USED: 11702272, CACHE: 16162816, FREE: 2965504
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 4219600   out: 3968475 
    LAN -> in: 3835605   out: 5879429
    WLAN -> in: 0   out: 568013
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    rddtool.sh finished at Wed Jan 24 10:20:51 MET 2007
     <------------------------------------------------------------->
    is the rrdlog, but the index.html wont change? graphs are created

    Edit// using the latest firmware from 7g
    Edit2// deleted the html files and now it works, now waiting to see some graphs on the 2.
    Last edited by Devil-Strike; 24-01-2007 at 09:30.

  4. #34
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    It should run every minute and not 5!

    But as you see It tooks almost a minute to finish the script. This is bad. Cron ensures cardinality btu again the scripts could stackup on high load. So If you are not doing anithing on the router, the it works. Otherwise you could run in trouble if you run it every minute.
    Last edited by oleo; 24-01-2007 at 09:32. Reason: explain

  5. #35
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    Quote Originally Posted by oleo View Post
    It should run every minute and not 5!

    But as you see It tooks almost a minute to finish the script. This is bad. Cron ensures cardinality btu again the scripts could stackup on high load. So If you are not doing anithing on the router, the it works. Otherwise you could run in trouble if you run it every minute.
    So i need to change it to 1min?
    btw whene it create the graph it wont slow down the router jet, whene i download @ fullspeed (20Mbit) i dont see any hickups.

    Btw, must i use the latest rrdtool.sh from attached file?
    Edit// i have also put this in cronjob */1 * * * * admin nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1

    Edit2//ok i have waited about 2 hours but nu sing of life from the load/ram usage.
    Last edited by Devil-Strike; 24-01-2007 at 14:05.

  6. #36
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    hmm ok, 4hours further and now my mem/load graphs are gone, it have worked 1 time after that only the lan/wan/wlan works.

    Code:
    rddtool.sh started at Wed Jan 24 15:50:01 MET 2007
    LOAD: 0.06
    MEM  -> USED: 11976704, CACHE: 15892480, FREE: 2961408
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 390863100   out: 192171190 
    LAN -> in: 188455985   out: 397968740
    WLAN -> in: 0   out: 0
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    rddtool.sh finished at Wed Jan 24 15:50:58 MET 2007
    the rrdlog say it works i think, but no graphs for load/mem.
    Last edited by Devil-Strike; 24-01-2007 at 14:55.

  7. #37
    Quote Originally Posted by Devil-Strike View Post
    hmm ok, 4hours further and now my mem/load graphs are gone, it have worked 1 time after that only the lan/wan/wlan works.

    Code:
    rddtool.sh started at Wed Jan 24 15:50:01 MET 2007
    LOAD: 0.06
    MEM  -> USED: 11976704, CACHE: 15892480, FREE: 2961408
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 390863100   out: 192171190 
    LAN -> in: 188455985   out: 397968740
    WLAN -> in: 0   out: 0
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    rddtool.sh finished at Wed Jan 24 15:50:58 MET 2007
    the rrdlog say it works i think, but no graphs for load/mem.
    Gone?
    Graphs are always replaced, not deleted. Note: Load and Mem graphs are generated each 7th and network graphs each 10th minute.
    Could you post here a listing of /opt/share/www/rrd directory?
    Code:
    ls -la /opt/share/www/rrd

  8. #38
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    Quote Originally Posted by maros View Post
    Gone?
    Graphs are always replaced, not deleted. Note: Load and Mem graphs are generated each 7th and network graphs each 10th minute.
    Could you post here a listing of /opt/share/www/rrd directory?
    Code:
    ls -la /opt/share/www/rrd
    Code:
    drwxr-xr-x    3 root     root         1024 Jan 24 18:30 .
    drwxr-xr-x    4 root     root         1024 Jan 23 15:20 ..
    drwxr-xr-x    2 root     root         1024 Jan 24 09:43 archive
    -rw-r--r--    1 root     root          515 Jan 24 15:38 index.html
    -rw-rw-rw-    1 root     root        43874 Jan 24 18:20 landay.png
    -rw-r--r--    1 root     root        27442 Jan 24 04:15 lanmonth.png
    -rw-rw-rw-    1 root     root        34629 Jan 24 18:01 lanweek.png
    -rw-r--r--    1 root     root        23745 Jan 24 04:15 lanyear.png
    -rw-rw-rw-    1 root     root        26546 Jan 24 18:01 loadweek.png
    -rw-rw-rw-    1 root     root        34195 Jan 24 18:01 memweek.png
    -rw-r--r--    1 root     root          527 Jan 24 15:38 month.html
    -rw-rw-rw-    1 root     root        46098 Jan 24 18:20 wanday.png
    -rw-r--r--    1 root     root            0 Jan 24 18:30 wanday.png.new
    -rw-r--r--    1 root     root        30124 Jan 24 04:15 wanmonth.png
    -rw-rw-rw-    1 root     root        34737 Jan 24 18:01 wanweek.png
    -rw-r--r--    1 root     root        24093 Jan 24 04:15 wanyear.png
    -rw-r--r--    1 root     root          521 Jan 24 15:38 week.html
    -rw-rw-rw-    1 root     root        38340 Jan 24 18:20 wlanday.png
    -rw-r--r--    1 root     root        26410 Jan 24 04:15 wlanmonth.png
    -rw-rw-rw-    1 root     root        32385 Jan 24 18:01 wlanweek.png
    -rw-r--r--    1 root     root        24062 Jan 24 04:15 wlanyear.png
    -rw-r--r--    1 root     root          521 Jan 24 15:38 year.html
    here the list.

  9. #39
    Quote Originally Posted by Devil-Strike View Post
    here the list.
    Interesting, the week graphs was created, but no day graphs.

    Could you check the log if there is any error at 17:57, 18:07, 18:17?

  10. #40
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    Quote Originally Posted by maros View Post
    Interesting, the week graphs was created, but no day graphs.

    Could you check the log if there is any error at 17:57, 18:07, 18:17?
    Code:
    rddtool.sh started at Wed Jan 24 17:55:01 MET 2007
    LOAD: 0.01
    MEM  -> USED: 11284480, CACHE: 15781888, FREE: 3764224
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 11886919   out: 12441979 
    LAN -> in: 12365186   out: 15980145
    WLAN -> in: 0   out: 0
    rddtool.sh finished at Wed Jan 24 17:55:03 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Wed Jan 24 18:00:01 MET 2007
    LOAD: 0.00
    MEM  -> USED: 11284480, CACHE: 15790080, FREE: 3756032
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 11998591   out: 12525933 
    LAN -> in: 12442683   out: 16127140
    WLAN -> in: 0   out: 0
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    Weekly Graphs creating.....
    647x347
    647x347
    647x347
    647x333
    647x389
    rddtool.sh finished at Wed Jan 24 18:01:34 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Wed Jan 24 18:05:01 MET 2007
    LOAD: 0.02
    MEM  -> USED: 11284480, CACHE: 16125952, FREE: 3420160
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 12081450   out: 12595282 
    LAN -> in: 12505927   out: 16260868
    WLAN -> in: 0   out: 0
    rddtool.sh finished at Wed Jan 24 18:05:03 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Wed Jan 24 18:10:01 MET 2007
    LOAD: 0.00
    MEM  -> USED: 11284480, CACHE: 16138240, FREE: 3407872
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 12182532   out: 12657952 
    LAN -> in: 12564836   out: 16389288
    WLAN -> in: 0   out: 0
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    rddtool.sh finished at Wed Jan 24 18:10:54 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Wed Jan 24 18:15:02 MET 2007
    LOAD: 0.01
    MEM  -> USED: 11284480, CACHE: 16187392, FREE: 3358720
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 12267447   out: 12706014 
    LAN -> in: 12608775   out: 16503539
    WLAN -> in: 0   out: 0
    rddtool.sh finished at Wed Jan 24 18:15:04 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Wed Jan 24 18:20:01 MET 2007
    LOAD: 0.00
    MEM  -> USED: 11284480, CACHE: 16199680, FREE: 3346432
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 12348664   out: 12740828 
    LAN -> in: 12641019   out: 16607806
    WLAN -> in: 0   out: 0
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    rddtool.sh finished at Wed Jan 24 18:20:55 MET 2007
     <------------------------------------------------------------->
    Here is the rrdlog.

  11. #41
    Quote Originally Posted by Devil-Strike View Post
    Here is the rrdlog.
    Thanks, I found the reason :-)

    You must change the cron setting to run the script each minute. Edit /opt/etc/crontab and change setting from "*/5" to "*/1"

    Code:
    Old setting:
    */5 * * * * admin nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
    
    New setting:
    */1 * * * * admin nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1

  12. #42
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    Quote Originally Posted by maros View Post
    Thanks, I found the reason :-)

    You must change the cron setting to run the script each minute. Edit /opt/etc/crontab and change setting from "*/5" to "*/1"

    Code:
    Old setting:
    */5 * * * * admin nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
    
    New setting:
    */1 * * * * admin nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
    i have putting that line there already, but not working:

    here is what in crontab
    Code:
    SHELL=/bin/sh 
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin 
    MAILTO="" 
    HOME=/ 
    # ---------- ---------- Default is Empty ---------- ---------- # 
    # Syntax for lines is : minute hour day month dayofweek command # 
    */1 * * * * root run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
    */5 * * * * root run-parts /opt/etc/cron.5mins 
    01 * * * * root run-parts /opt/etc/cron.hourly 
    02 4 * * * root run-parts /opt/etc/cron.daily 
    22 4 * * 0 root run-parts /opt/etc/cron.weekly 
    42 4 1 * * root run-parts /opt/etc/cron.monthly

  13. #43
    Quote Originally Posted by Devil-Strike View Post
    i have putting that line there already, but not working:

    here is what in crontab
    Code:
    SHELL=/bin/sh 
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin 
    MAILTO="" 
    HOME=/ 
    # ---------- ---------- Default is Empty ---------- ---------- # 
    # Syntax for lines is : minute hour day month dayofweek command # 
    */1 * * * * root run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
    */5 * * * * root run-parts /opt/etc/cron.5mins 
    01 * * * * root run-parts /opt/etc/cron.hourly 
    02 4 * * * root run-parts /opt/etc/cron.daily 
    22 4 * * 0 root run-parts /opt/etc/cron.weekly 
    42 4 1 * * root run-parts /opt/etc/cron.monthly
    Check the log, if is the rrdtool.sh run each minute and don't forget load and memory graphs are generated each 7th minute. So you should wait some time for graphs, 10 minutes in the worst case.

  14. #44
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    Quote Originally Posted by maros View Post
    Check the log, if is the rrdtool.sh run each minute and don't forget load and memory graphs are generated each 7th minute. So you should wait some time for graphs, 10 minutes in the worst case.
    This is what i see on syslog:
    Code:
    Jan 25 09:54:01 /opt/sbin/cron[300]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 09:55:01 /opt/sbin/cron[303]: (root) CMD (run-parts /opt/etc/cron.5mins ^M)
    Jan 25 09:55:01 /opt/sbin/cron[304]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 09:56:01 /opt/sbin/cron[416]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 09:57:01 /opt/sbin/cron[418]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 09:58:01 /opt/sbin/cron[420]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 09:59:01 /opt/sbin/cron[422]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 10:00:01 /opt/sbin/cron[425]: (root) CMD (run-parts /opt/etc/cron.5mins ^M)
    Jan 25 10:00:01 /opt/sbin/cron[426]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 10:01:01 /opt/sbin/cron[537]: (root) CMD (run-parts /opt/etc/cron.hourly ^M)
    Jan 25 10:01:01 /opt/sbin/cron[538]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 10:02:01 /opt/sbin/cron[577]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 10:03:01 /opt/sbin/cron[579]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    And this is the rrdlog:
    Code:
    rddtool.sh started at Thu Jan 25 09:45:01 MET 2007
    LOAD: 0.09
    MEM  -> USED: 8822784, CACHE: 18665472, FREE: 3342336
    SWAP -> USED: 233472, FREE: 345219072
    Updating Network Load Databases...
    WAN -> in: 1197967135   out: 106104310 
    LAN -> in: 101619535   out: 1220538076
    WLAN -> in: 0   out: 0
    rddtool.sh finished at Thu Jan 25 09:45:04 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Thu Jan 25 09:50:01 MET 2007
    LOAD: 0.30
    MEM  -> USED: 8212480, CACHE: 12046336, FREE: 10571776
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 14051   out: 22327 
    LAN -> in: 19061   out: 40942
    WLAN -> in: 0   out: 0
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    rddtool.sh finished at Thu Jan 25 09:51:06 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Thu Jan 25 09:55:01 MET 2007
    LOAD: 0.01
    MEM  -> USED: 10498048, CACHE: 17240064, FREE: 3092480
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 687785   out: 247611 
    LAN -> in: 279433   out: 1371618
    WLAN -> in: 0   out: 0
    rddtool.sh finished at Thu Jan 25 09:55:04 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Thu Jan 25 10:00:01 MET 2007
    LOAD: 0.00
    MEM  -> USED: 10514432, CACHE: 17244160, FREE: 3072000
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 1115702   out: 348146 
    LAN -> in: 392922   out: 1848658
    WLAN -> in: 0   out: 0
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    Weekly Graphs creating.....
    647x347
    647x347
    647x347
    647x333
    647x389
    rddtool.sh finished at Thu Jan 25 10:01:46 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Thu Jan 25 10:05:01 MET 2007
    LOAD: 0.03
    MEM  -> USED: 10915840, CACHE: 17117184, FREE: 2797568
    SWAP -> USED: 0, FREE: 345452544
    Updating Network Load Databases...
    WAN -> in: 1626407   out: 566577 
    LAN -> in: 635611   out: 3394315
    WLAN -> in: 0   out: 0
    rddtool.sh finished at Thu Jan 25 10:05:03 MET 2007
     <------------------------------------------------------------->

  15. #45
    Quote Originally Posted by Devil-Strike View Post
    This is what i see on syslog:
    Code:
    Jan 25 09:54:01 /opt/sbin/cron[300]: (root) CMD (run-parts /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 09:55:01 /opt/sbin/cron[303]: (root) CMD (run-parts /opt/etc/cron.5mins ^M)
    And this is the rrdlog:
    Code:
    rddtool.sh started at Thu Jan 25 09:45:01 MET 2007
    LOAD: 0.09
    MEM  -> USED: 8822784, CACHE: 18665472, FREE: 3342336
    SWAP -> USED: 233472, FREE: 345219072
    Updating Network Load Databases...
    WAN -> in: 1197967135   out: 106104310 
    LAN -> in: 101619535   out: 1220538076
    WLAN -> in: 0   out: 0
    rddtool.sh finished at Thu Jan 25 09:45:04 MET 2007
     <------------------------------------------------------------->
    OK, finally (maybe ;-) )

    1) You should don't use the run-parts script before rrdtool.sh command.
    Change the line to:
    Code:
    */1 * * * * root nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
    2) The script is still run each 5 minute. You must remove the rrdtool.sh call from the "/opt/etc/cron.5mins" directory.

Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. RRDTool Traffic Graph Tutorial - Extremely easy to follow !
    By macsat in forum WL-500gP Tutorials
    Replies: 83
    Last Post: 09-06-2009, 21:34

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
  •