"Data on Graph Updates only when cmd.php is ran manually"
as the subject says, i have a graph that is only updating when i runt he cmd.php command manually.
when i run it manually i get:
update /usr/home/ross/rrdstats/rra/apache_uptime.rrd --template apache_uptime N:1.30527777777778
when i let contab run it, i get:
update /usr/home/ross/rrdstats/rra/apache_uptime.rrd --template apache_uptime N:U
So.. somthing is not right, i have 15 other graphs that work perfectly. But when i try to add any more graphs there all having the same problem.
i have done the CMD.PHP update for 0.6.6 alraedy.
any ideas would be helpfull
ross
Data on Graph Updates only when cmd.php is ran manually
Moderators: Developers, Moderators
The first thing that comes to mind is; are you using a custom script for this data source? Many times commands require a shell to be present to execute correctly. For example, to call wget in one of my scripts I had to do the following from perl:
$status=`/bin/bash -c 'wget --quiet -O - URL -c'`;
Hope this applies to your situation.
-Ian
$status=`/bin/bash -c 'wget --quiet -O - URL -c'`;
Hope this applies to your situation.
-Ian
raX wrote:The first thing that comes to mind is; are you using a custom script for this data source? Many times commands require a shell to be present to execute correctly. For example, to call wget in one of my scripts I had to do the following from perl:
$status=`/bin/bash -c 'wget --quiet -O - URL -c'`;
Hope this applies to your situation.
-Ian
--> my perl-programm must be :
==
#!/usr/bin/perl
$status=`/bin/bash -c 'echo 1 2'`;
print $status;
==
and i get my "1 2" output ?
i`m right?
Who is online
Users browsing this forum: No registered users and 2 guests