Data on Graph Updates only when cmd.php is ran manually

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
ross
Posts: 16
Joined: Sun Mar 17, 2002 7:00 pm

Post by ross »

"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
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

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
ross
Posts: 16
Joined: Sun Mar 17, 2002 7:00 pm

Post by ross »

WOOHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
thank you :wink:


ross
vitaly

Post by vitaly »

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests