macsat.com OpenWrt and ASUS WL Forum
November 21, 2008, 12:17:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: rrdtool instalation procedure failing  (Read 648 times)
0 Members and 1 Guest are viewing this topic.
alkonius
Newbie
*
Offline Offline

Posts: 3


View Profile
« on: September 11, 2008, 14:55:10 PM »

Dear Macsat,

Im facing rrdtool problems on my Asus WL700gE running custom firmware from Kfurge. I was browsing Google and forums up and down for past two evenings, with no luct so I decided to start my own tread and descibe my problems.

I followed your guidelines from page http://www.macsat.com/rrdtool.php and Im failing to create the *.rrd files

Code:
[root@xxx bin]$ ./rrdtool.sh
Thu Sep 11 13:35:49 UTC 2008
WAN Interface: eth0
LAN Interface: vlan0
WLAN Interface: eth1
RRD file : /opt/var/lib/rrd/eth0.rrd does not exist...Creating Now...

I have execute rights
Code:
[root@xxx bin]$ ls -la
-rwxr-xr-x    1 root     root        25700 Aug 15 19:40 rrdcgi
-rwxr-xr-x    1 root     root         3748 Aug 15 19:40 rrdtool
-rwxrwxrwx    1 root     root        5717 Sep 11 12:31 rrdtool.sh
-rwxr-xr-x    1 root     root        71040 Aug 15 19:40 rrdupdate

Regardless how long I keep it running, it wont create any file. Strangely on my fedora9 desktop, the file is created instantly. If try to upload eth0.rrd into my Asus rrd folder, rrdtool update would be compaining about file being "created on another platform"

So, I´v decided to give him dummy files, jut to let the script run, but another error
/opt/bin/rrdtool.sh: /opt/bin/rrdtool.sh: 136: rrdupdate: not found
/opt/bin/rrdtool.sh: /opt/bin/rrdtool.sh: 137: rrdupdate: not found
/opt/bin/rrdtool.sh: /opt/bin/rrdtool.sh: 138: rrdupdate: not found

The key issue would be inability to create eth0.rrd, even manually, without script, if I just replace $ with proper name a and issue the command directly, the problem is exactly the same. There was a guy facing EXACTLy same issue, but in 2006 and my guess is he fixed it, or gave up. His thread: http://wl500g.info/showthread.php?t=15955&highlight=rrdtool

Probably those scripts are not meant for wl700 at all, or maybe Im just missing somenthing, which is just expected to be installed. If you can, please help.
Thanks
Logged
alkonius
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #1 on: September 11, 2008, 19:14:03 PM »

Update:

*.rdd files are created, I had to change parameter in rrdtool.sh

       DS:in:DERIVE:600:0:12500000 \
   DS: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
to
        DS:in:DERIVE:600:U:U \
   DS:out:DERIVE:600:U:U \
   RRA:AVERAGE:0.5:1:576 \
   RRA:AVERAGE:0.5:6:672 \
   RRA:AVERAGE:0.5:24:732 \
   RRA:AVERAGE:0.5:144:1460

now, I can see day and week grapshe being generated, but only two points are interconencd with line, trhird and fourth graph is generated with blank collumn. if I kill the related processes, it will draw me another line.
Might be related to processes I can see in ps
Code:
2452 root        976 S   cron
 2456 root        976 S   cron
 2457 root       2036 S   /opt/bin/bash /opt/bin/run-parts /opt/etc/cron.5mins
 2462 root       2040 S   /opt/bin/bash /opt/bin/run-parts /opt/etc/cron.5mins
 2463 root       2040 S   /opt/bin/bash /opt/bin/rrdtool.sh
 2502 root       1092 R   rrdupdate /opt/var/lib/rrd/eth1.rrd -t in:out N:0:0
 3015 root        976 S   cron
 3018 root       2036 S   /opt/bin/bash /opt/bin/run-parts /opt/etc/cron.5mins
 3025 root       2040 S   /opt/bin/bash /opt/bin/run-parts /opt/etc/cron.5mins
 3026 root       2040 S   /opt/bin/bash /opt/bin/rrdtool.sh
 3063 root       1092 R   rrdupdate /opt/var/lib/rrd/eth0.rrd -t in:out N:773904812:2785865660
 3064 root        976 S   cron
 3065 root       2036 S   /opt/bin/bash /opt/bin/run-parts /opt/etc/cron.5mins
 3069 root       2040 S   /opt/bin/bash /opt/bin/run-parts /opt/etc/cron.5mins
 3070 root       2056 S   /opt/bin/bash /opt/bin/rrdtool.sh
 3109 root       1092 R   rrdupdate /opt/var/lib/rrd/vlan0.rrd -t in:out N:108171521:2658918120
 4276 root        976 S   cron
 4277 root       2036 S   /opt/bin/bash /opt/bin/run-parts /opt/etc/cron.5mins
 4281 root        976 S   cron
 4284 root       2036 S   /opt/bin/bash /opt/bin/run-parts /opt/etc/cron.5mins
 4291 root       2040 S   /opt/bin/bash /opt/bin/run-parts /opt/etc/cron.5mins
 4292 root       2064 S   /opt/bin/bash /opt/bin/rrdtool.sh
 4338 root       2040 S   /opt/bin/bash /opt/bin/run-parts /opt/etc/cron.5mins
 4339 root       2064 S   /opt/bin/bash /opt/bin/rrdtool.sh
 4444 root       3460 R   rrdtool graph /opt/share/www/rrd//landay.png.new -a PNG -s -86400 -w 550 -h 240 -v bytes/s DEF:ds1=/opt/var/lib/rrd/vlan0.rrd:in:AVERAGE DEF:ds2=/opt/var/lib/rrd/vlan0.rrd:out:AVERAGE LINE1:ds1#00FF00:Incoming Traffic GPRINT:ds1:MAX:Max %6.2lf %s GPRINT:ds1:MIN:Min %6.2lf
 4446 root       3448 R   rrdtool graph /opt/share/www/rrd//landay.png.new -a PNG -s -86400 -w 550 -h 240 -v bytes/s DEF:ds1=/opt/var/lib/rrd/vlan0.rrd:in:AVERAGE DEF:ds2=/opt/var/lib/rrd/vlan0.rrd:out:AVERAGE LINE1:ds1#00FF00:Incoming Traffic GPRINT:ds1:MAX:Max %6.2lf %s GPRINT:ds1:MIN:Min %6.2lf
 4498 root       1788 R   ps

with following cat /opt/var/log/rrdtool.log

Thu Sep 11 18:06:06 UTC 2008
WAN Interface: eth0
LAN Interface: vlan0
WLAN Interface: eth1
/opt/var/lib/rrd/eth0.rrd
WAN -> in: 805073404   out: 2797349064
LAN -> in: 109553420   out: 2663278043
WLAN -> in: 0   out: 0
/opt/bin/rrdtool.sh: line 137: RRDtool: command not found
/opt/bin/rrdtool.sh: line 138: RRDtool: command not found
/opt/bin/rrdtool.sh: line 139: RRDtool: command not found
 <------------------------------------------------------------->

Thu Sep 11 18:07:45 UTC 2008
WAN Interface: eth0
LAN Interface: vlan0
WLAN Interface: eth1
/opt/var/lib/rrd/eth0.rrd
WAN -> in: 805339352   out: 2797522524
LAN -> in: 109603362   out: 2663354751
WLAN -> in: 0   out: 0
/opt/bin/rrdtool.sh: line 137: RRDtool: command not found
/opt/bin/rrdtool.sh: line 138: RRDtool: command not found
/opt/bin/rrdtool.sh: line 139: RRDtool: command not found
 <------------------------------------------------------------->

Thu Sep 11 18:08:07 UTC 2008
WAN Interface: eth0
LAN Interface: vlan0
WLAN Interface: eth1
/opt/var/lib/rrd/eth0.rrd
WAN -> in: 805398709   out: 2797569805
LAN -> in: 109613857   out: 2663370187
WLAN -> in: 0   out: 0
/opt/bin/rrdtool.sh: line 137: RRDtool: command not found
/opt/bin/rrdtool.sh: line 138: RRDtool: command not found
/opt/bin/rrdtool.sh: line 139: RRDtool: command not found
 <------------------------------------------------------------->

Thu Sep 11 18:09:06 UTC 2008
WAN Interface: eth0
LAN Interface: vlan0
WLAN Interface: eth1
/opt/var/lib/rrd/eth0.rrd
WAN -> in: 806661345   out: 2797887522
LAN -> in: 109648315   out: 2663420989
WLAN -> in: 0   out: 0
/opt/bin/rrdtool.sh: line 137: RRDtool: command not found
/opt/bin/rrdtool.sh: line 138: RRDtool: command not found
/opt/bin/rrdtool.sh: line 139: RRDtool: command not found
 <------------------------------------------------------------->

Thu Sep 11 18:10:05 UTC 2008
WAN Interface: eth0
LAN Interface: vlan0
WLAN Interface: eth1
/opt/var/lib/rrd/eth0.rrd
WAN -> in: 810356257   out: 2798661395
LAN -> in: 109674385   out: 2663478413
WLAN -> in: 0   out: 0
/opt/bin/rrdtool.sh: line 137: RRDtool: command not found
/opt/bin/rrdtool.sh: line 138: RRDtool: command not found
/opt/bin/rrdtool.sh: line 139: RRDtool: command not found
Daily Graphs created.....
647x333


Does anybody know why?


* landay.png (31.39 KB, 647x333 - viewed 75 times.)
« Last Edit: September 11, 2008, 19:18:12 PM by alkonius » Logged
alkonius
Newbie
*
Offline Offline

Posts: 3


View Profile
« Reply #2 on: September 11, 2008, 19:30:47 PM »

Update2:

Problem is not in actual png graph, but in the data for it. database is almost empty  Undecided Huh

Code:
1221149400: nan nan
1221149700: nan nan
1221150000: nan nan
1221150300: nan nan
1221150600: 1.4474366427e+05 1.9690509355e+04
1221150900: nan nan
1221151200: nan nan
1221151500: nan nan
1221151800: nan nan
1221152100: nan nan
1221152400: nan nan
1221152700: nan nan
1221153000: nan nan
1221153300: nan nan
1221153600: nan nan
1221153900: 1.0149032674e+05 1.4733028046e+04
1221154200: 6.8996157624e+04 1.5711864952e+04
1221154500: nan nan
1221154800: nan nan
1221155100: nan nan
1221155400: nan nan
1221155700: nan nan
1221156000: nan nan
1221156300: nan nan
1221156600: nan nan
1221156900: nan nan
1221157200: nan nan
1221157500: 2.9755895467e+04 3.3867364482e+05
1221157800: nan nan
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.983 seconds with 24 queries.