macsat.com OpenWrt and ASUS WL Forum
January 08, 2009, 10:07:27 AM *
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: Cron and rrdtool not working-please help  (Read 1708 times)
0 Members and 1 Guest are viewing this topic.
green
Newbie
*
Offline Offline

Posts: 29


View Profile
« on: May 29, 2006, 14:13:52 PM »

I am sorry about my english but a need help with:
I have wl-500gx with Oleg's firmware and installed thttpd,cron,rrdtool from tutorials. Thttpd server with my www.page is runing ok on port 81. Cron I think that is woking too but the rrdtool insn't working and in my rrdtool.log is this
/opt/bin/run-parts: line 2: /opt/usr/bin/rrdtool.sh: Permission denied

And for example when cron is running my pages on port 81 not working.
And the test.txt cron from tutorial is working ok.



[root@xxx root]$ ps                                                   PID  Uid     VmSize Stat Command
    1 root       660 S   sbin/init
    2 root           SW  [keventd]
    3 root           SWN [ksoftirqd_CPU0]
    4 root           SW  [kswapd]
    5 root           SW  [bdflush]
    6 root           SW  [kupdated]
    7 root           SW  [mtdblockd]
   15 root           SW  [khubd]
   23 root           SW  [usb-storage-0]
   24 root           SW  [scsi_eh_0]
   27 root           SW  [kjournald]
   80 root       304 S   telnetd
   86 root       376 S   httpd vlan1
   89 rooty      432 S   dnsmasq
   91 root      388 S   syslogd -m 0 -O /tmp/syslog.log -S -l 7
   94 root       340 S   klogd
  103 root       276 S   lpd
  105 root       260 S   p9100d -f /dev/usb/lp0 0
  108 root       344 S   waveservermain
  110 root       344 S   rcamdmain
  115 root       320 S   infosvr br0
  116 root       464 S   watchdog
  119 root       344 S   ntp
  131 root       440 S   dropbear
  148 root       432 S   udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcp
  153 nobody     4580 S   /opt/sbin/thttpd -C /opt/etc/thttpd.conf
  222 root       744 R   dropbear
  223 root      1080 S   -sh
  235 root       408 S   /opt/sbin/cron
  236 root       392 R   ps


/opt/etc/crontab
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 #
*/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
----------------------------------------------------------------------------

 /opt/etc/cron.5mins/rrdrun.sh
#!/bin/sh
/opt/usr/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
---------------------------------------------------------------------------
 /opt/usr/bin/rrdtool.sh from tutorial

Do you anybody know what it means and where is mistake.
Thanks for your help
« Last Edit: June 01, 2006, 08:34:06 AM by green » Logged
green
Newbie
*
Offline Offline

Posts: 29


View Profile
« Reply #1 on: June 02, 2006, 10:24:53 AM »

nobody knows??? Cry
Logged
erlis
Jr. Member
**
Offline Offline

Posts: 66


View Profile WWW
« Reply #2 on: June 02, 2006, 13:27:27 PM »

I am sorry about my english but a need help with:
I have wl-500gx with Oleg's firmware and installed thttpd,cron,rrdtool from tutorials. Thttpd server with my www.page is runing ok on port 81. Cron I think that is woking too but the rrdtool insn't working and in my rrdtool.log is this
/opt/bin/run-parts: line 2: /opt/usr/bin/rrdtool.sh: Permission denied

And for example when cron is running my pages on port 81 not working.
And the test.txt cron from tutorial is working ok.



[root@xxx root]$ ps                                                   PID  Uid     VmSize Stat Command
    1 root       660 S   sbin/init
    2 root           SW  [keventd]
    3 root           SWN [ksoftirqd_CPU0]
    4 root           SW  [kswapd]
    5 root           SW  [bdflush]
    6 root           SW  [kupdated]
    7 root           SW  [mtdblockd]
   15 root           SW  [khubd]
   23 root           SW  [usb-storage-0]
   24 root           SW  [scsi_eh_0]
   27 root           SW  [kjournald]
   80 root       304 S   telnetd
   86 root       376 S   httpd vlan1
   89 rooty      432 S   dnsmasq
   91 root      388 S   syslogd -m 0 -O /tmp/syslog.log -S -l 7
   94 root       340 S   klogd
  103 root       276 S   lpd
  105 root       260 S   p9100d -f /dev/usb/lp0 0
  108 root       344 S   waveservermain
  110 root       344 S   rcamdmain
  115 root       320 S   infosvr br0
  116 root       464 S   watchdog
  119 root       344 S   ntp
  131 root       440 S   dropbear
  148 root       432 S   udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcp
  153 nobody     4580 S   /opt/sbin/thttpd -C /opt/etc/thttpd.conf
  222 root       744 R   dropbear
  223 root      1080 S   -sh
  235 root       408 S   /opt/sbin/cron
  236 root       392 R   ps


/opt/etc/crontab
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 #
*/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
----------------------------------------------------------------------------

 /opt/etc/cron.5mins/rrdrun.sh
#!/bin/sh
/opt/usr/bin/rrdtool.sh >> /opt/var/log/rrdtool.log 2>&1
---------------------------------------------------------------------------
 /opt/usr/bin/rrdtool.sh from tutorial

Do you anybody know what it means and where is mistake.
Thanks for your help

try
Code:
chmod +x /opt/usr/bin/rrdtool.sh
/opt/usr/bin/rrdtool.sh
Logged
green
Newbie
*
Offline Offline

Posts: 29


View Profile
« Reply #3 on: June 03, 2006, 08:37:01 AM »

Well doneNow is everything running.
Thanks very much
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 1.124 seconds with 23 queries.