|
|
| Author |
Message |
shraga
Joined: 13 Apr 2003 Posts: 3
|
Posted: Mon Apr 14, 2003 3:40 pm Post subject: CANNOT FIND DATA SOURCE |
|
|
Hello,
for some reason I am getting this error and the rra is empty.
The permissions are fine and the cacti user is the owner.
however when I try to run the command manually i.e:
/usr/local/bin/rrdtool create <cacti installation>/rra/ping_uunet_phi.rrd
ERROR: you must define at least one Round Robin Archive
when I tried to run the cron job manually I received
# php<cacti installation>/cmd.php > /dev/null 2 > & 1
Ambiguous output redirect.
any ideas
thanks in advance
shraga |
|
| Back to top |
|
 |
wmelick
Joined: 11 Apr 2003 Posts: 34 Location: Wilmington, Delaware
|
Posted: Mon Apr 14, 2003 4:31 pm Post subject: Spaces |
|
|
I think I see some spaces in your output redirect....try /dev/null 2>&1 (no spaces except before the 2)
Also, it can take a full poll interval (time between running cmd.php as defined in your crontab) before the RRD data sources will be created.....that is unless you run the cmd.php manually in which case it should be created right away. |
|
| Back to top |
|
 |
shraga
Joined: 13 Apr 2003 Posts: 3
|
Posted: Mon Apr 14, 2003 4:40 pm Post subject: |
|
|
I removed the spaces, same result.
also when I run it manually
thanks in advance
/shraga. |
|
| Back to top |
|
 |
wmelick
Joined: 11 Apr 2003 Posts: 34 Location: Wilmington, Delaware
|
Posted: Mon Apr 14, 2003 4:50 pm Post subject: Actually |
|
|
The rrdtool create actually gives a lot of flags (as separated by the \):
(an example from my config):
/usr/local/rrdtool/bin/rrdtool create \
/var/www/html/cacti/rra/welles_int_e151_in.rrd \
--step 300 \
DS:welles_int_e151_in:COUNTER:600:0:10000000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
So you have a Data Source (DS: flag) and several RRA's (RRA: flag) |
|
| Back to top |
|
 |
wmelick
Joined: 11 Apr 2003 Posts: 34 Location: Wilmington, Delaware
|
Posted: Mon Apr 14, 2003 5:00 pm Post subject: Check some details |
|
|
From the # prompt, looks like you're running as root. Is this OK?
Next, make sure "which php" shows the path to php...for me 's /usr/local/bin/php
then make sure you have a space between php and the path to cmd.php...e.g.
prompt>php /var/www/html/cacti/cmd.php > /dev/null 2>&1
(note the spaces after the first php, then before the first > and one after it before /dev/null)
does this help? |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Apr 14, 2003 5:22 pm Post subject: |
|
|
php can be found at /usr/local/bin/php
and php -v provides the corrct status
I tried to run the cmd both in root and cacti user.
also all the spaces are in the correct place.
again thanks for your efforts |
|
| Back to top |
|
 |
|