Results 1 to 15 of 76

Thread: Trouble with RRDTool and updated uClibc

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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

  2. #2
    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.

  3. #3
    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
     <------------------------------------------------------------->

  4. #4
    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.

  5. #5
    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 10:10.

  6. #6
    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?

  7. #7
    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

  8. #8
    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.

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
  •