Page 4 of 6 FirstFirst ... 23456 LastLast
Results 46 to 60 of 76

Thread: Trouble with RRDTool and updated uClibc

  1. #46
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    Quote Originally Posted by maros View Post
    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.

    is still not working, only the weekly is updated but thats it.
    removed rrdrun.sh now nothing is working anymore.
    Last edited by Devil-Strike; 25-01-2007 at 11:10.

  2. #47
    Quote Originally Posted by Devil-Strike View Post
    is still not working, only the weekly is updated but thats it.
    removed rrdrun.sh now nothing is working anymore.
    What are the logs say now?

  3. #48
    Quote Originally Posted by Devil-Strike View Post
    is still not working, only the weekly is updated but thats it.
    removed rrdrun.sh now nothing is working anymore.
    Hm. I have the same problems with rrdtool that you have. Only blank white graphics and no one point.

  4. #49
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    Quote Originally Posted by maros View Post
    What are the logs say now?
    This is the rrdlog:
    Code:
    rddtool.sh started at Thu Jan 25 10:30:01 MET 2007
    LOAD: 0.00
    MEM  -> USED: 10604544, CACHE: 16252928, FREE: 3973120
    SWAP -> USED: 327680, FREE: 345124864
    Updating Network Load Databases...
    WAN -> in: 9566949   out: 1414566 
    LAN -> in: 1662314   out: 13726954
    WLAN -> in: 0   out: 0
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    rddtool.sh finished at Thu Jan 25 10:31:04 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Thu Jan 25 10:35:01 MET 2007
    LOAD: 0.03
    MEM  -> USED: 10989568, CACHE: 16527360, FREE: 3313664
    SWAP -> USED: 323584, FREE: 345128960
    Updating Network Load Databases...
    WAN -> in: 80345046   out: 4113369 
    LAN -> in: 3969596   out: 85482804
    WLAN -> in: 0   out: 0
    rddtool.sh finished at Thu Jan 25 10:35:03 MET 2007
     <------------------------------------------------------------->
    not updated anymore after i removed rrdrun.sh

    and this is my syslog:
    Code:
    Jan 25 15:09:57 ntp client: Synchronizing time with time.nist.gov ...
    Jan 25 15:10:03 /opt/sbin/cron[1051]: (root) CMD (run-parts /opt/etc/cron.5mins ^M)
    Jan 25 15:10:03 /opt/sbin/cron[1052]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:11:01 /opt/sbin/cron[1059]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:12:01 /opt/sbin/cron[1061]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:13:01 /opt/sbin/cron[1063]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:14:01 /opt/sbin/cron[1065]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:15:01 /opt/sbin/cron[1068]: (root) CMD (run-parts /opt/etc/cron.5mins ^M)
    Jan 25 15:15:02 /opt/sbin/cron[1069]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:16:01 /opt/sbin/cron[1076]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:17:01 /opt/sbin/cron[1078]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:18:01 /opt/sbin/cron[1080]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:19:01 /opt/sbin/cron[1082]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:20:01 /opt/sbin/cron[1085]: (root) CMD (run-parts /opt/etc/cron.5mins ^M)
    Jan 25 15:20:01 /opt/sbin/cron[1086]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:21:01 /opt/sbin/cron[1093]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:22:01 /opt/sbin/cron[1095]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:23:01 /opt/sbin/cron[1097]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:24:01 /opt/sbin/cron[1099]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:25:01 /opt/sbin/cron[1102]: (root) CMD (run-parts /opt/etc/cron.5mins ^M)
    Jan 25 15:25:01 /opt/sbin/cron[1103]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    Jan 25 15:26:01 /opt/sbin/cron[1110]: (root) CMD (nice /opt/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1^M)
    its very strange

  5. #50
    Quote Originally Posted by Devil-Strike View Post
    This is the rrdlog:
    Code:
    rddtool.sh started at Thu Jan 25 10:30:01 MET 2007
    LOAD: 0.00
    MEM  -> USED: 10604544, CACHE: 16252928, FREE: 3973120
    SWAP -> USED: 327680, FREE: 345124864
    Updating Network Load Databases...
    WAN -> in: 9566949   out: 1414566 
    LAN -> in: 1662314   out: 13726954
    WLAN -> in: 0   out: 0
    Network Daily Graphs creating.....
    647x347
    647x347
    647x347
    rddtool.sh finished at Thu Jan 25 10:31:04 MET 2007
     <------------------------------------------------------------->
     
    rddtool.sh started at Thu Jan 25 10:35:01 MET 2007
    LOAD: 0.03
    MEM  -> USED: 10989568, CACHE: 16527360, FREE: 3313664
    SWAP -> USED: 323584, FREE: 345128960
    Updating Network Load Databases...
    WAN -> in: 80345046   out: 4113369 
    LAN -> in: 3969596   out: 85482804
    WLAN -> in: 0   out: 0
    rddtool.sh finished at Thu Jan 25 10:35:03 MET 2007
     <------------------------------------------------------------->
    not updated anymore after i removed rrdrun.sh


    its very strange
    Could you post here the content of the rrdrun.sh script? There is probably wrong path to rrdtool.sh in cron.

    To check use:
    Code:
    [maros@wl-500gp root]$ type rrdtool.sh
    rrdtool.sh is /opt/bin/rrdtool.sh
    [maros@wl-500gp root]$
    The path in crontab must be changed to be the same.

  6. #51
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    Quote Originally Posted by maros View Post
    Could you post here the content of the rrdrun.sh script? There is probably wrong path to rrdtool.sh in cron.

    To check use:
    Code:
    [maros@wl-500gp root]$ type rrdtool.sh
    rrdtool.sh is /opt/bin/rrdtool.sh
    [maros@wl-500gp root]$
    The path in crontab must be changed to be the same.
    this is my rrdrun.sh
    Code:
    #!/bin/sh 
    /opt/usr/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1

    and this is the the outbut of type rrdtool
    Code:
    [root@Devil-Strike bin]$ type rrdtool
    rrdtool is /opt/bin/rrdtool

  7. #52
    Quote Originally Posted by Devil-Strike View Post
    this is my rrdrun.sh
    Code:
    #!/bin/sh 
    /opt/usr/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
    Ok, as you can see, you have the rrdtool.sh script placed in "/opt/usr/bin/", but path in crontab is only "/opt/bin/". Update the crontab to:
    Code:
    */1 * * * * root nice /opt/usr/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
    And it should works.

  8. #53
    Join Date
    Jun 2005
    Location
    The Netherlands, Haarlem
    Posts
    33
    Quote Originally Posted by maros View Post
    Ok, as you can see, you have the rrdtool.sh script placed in "/opt/usr/bin/", but path in crontab is only "/opt/bin/". Update the crontab to:
    Code:
    */1 * * * * root nice /opt/usr/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
    And it should works.
    Ok i will try.

  9. #54

    rrdtool 1.0.50 ipk

    Can anyone point me to a rrdtool 1.0.50 ipk file, the one that doesn't freeze when rendering certain graphics? All the repositories I've seen seem to include only recent versions.

  10. #55
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Install http://wl500g.dyndns.org/7g/ and then try again

  11. #56
    Oleg's firmware 1.9.2.7-7g-pre1 seems to make rrdtool work much better. I'm generating 7 different graphics in about 50 seconds, and no more hang up rrdtool's left behind. See this if you're willing to give 7g-pre1 a spin.

  12. #57

  13. #58
    I try understand how rrdcollect works.
    I created a rrd base via rrdtool.
    Code:
    rrdtool create eth0.rrd \
    	DS:bytes_in:DERIVE:600:0:12500000 \
    	DS:bytes_out:DERIVE:600:0:12500000 \
    	DS:pkts_in:DERIVE:600:0:12500000 \
    	DS:pkts_out:DERIVE:600:0:12500000 \
    	RRA:AVERAGE:0.5:1:576 \
    	RRA:AVERAGE:0.5:6:672 \
    	RRA:AVERAGE:0.5:24:732 \
    	RRA:AVERAGE:0.5:144:1460
    than i run rrdcollect with default config file.
    Code:
    ...
    # Net: statistics
    #file:///proc/net/dev
    " eth0: %d %d %*d %*d %*d %*d %*d %*d %d %d"    eth0.rrd:bytes_in,pkts_in,bytes_out, pkts_out
    ...
    So, it`s update rrdbase every minute, but the value is "NAN".

    I use Oleg's firmware 1.9.2.7-7g-pre1 as recommended.

  14. #59
    FWIW, you've set up the database for a step of 5 minutes. You need the -s parameter to rrdtool create, and the default is 300 seconds. Otherwise, the database definition looks good, so you can rule that out.

    Why rrdcollect? I prefer rrdupdate, and collect the numbers myself, this way I can see what's going on. Perhaps you're not getting the numbers you think you are. Or maybe it doesn't run once a minute like you think it is.

    And then there's the graph where you could go wrong. How did you define that?

  15. #60
    Quote Originally Posted by _Denis_ View Post
    I try understand how rrdcollect works.
    I created a rrd base via rrdtool.
    Code:
    ...
    # Net: statistics
    #file:///proc/net/dev
    " eth0: %d %d %*d %*d %*d %*d %*d %*d %d %d"    eth0.rrd:bytes_in,pkts_in,bytes_out, pkts_out
    ...
    So, it`s update rrdbase every minute, but the value is "NAN".

    I use Oleg's firmware 1.9.2.7-7g-pre1 as recommended.
    Just remove the space after colon (":").

Page 4 of 6 FirstFirst ... 23456 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, 22: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
  •