次に例を示します。このスクリプトはデータを生成します。
#!/opt/local/bin/perl
use Data::Dumper;
use strict;
my $i=0;
my $startTime=time;
$startTime += $ARGV[0] + 5;
my $dTime = localtime( $startTime );
print "\n##################\nLAUNCHING REQUESTS\n COUNT: $ARGV[0]\n DELAY: | 1 \nThe scripts will fire at : $dTime\n##################\n\n";
while ( $ARGV[0] > $i )
{
$i++;
system("php avtestTimed.php $ARGV[0] $ARGV[2] $startTime");
print "RUN system('php avtestTimed.php $ARGV[0] $ARGV[2] $startTime'); \n";
sleep 1;
}
stdoutの結果は次のとおりです。
################## 起動リクエスト カウント:5 遅延:| 1 スクリプトは次の時間に起動します:Mon Dec 6 09:38:15 2010 ################## 0.00015100で実行1291646295-SID28a952711439a8f98e5acf807da3455cを使用-test.yakabod.netに対して 1.5974318981171で(https://test.yakabod.net/activityViewer/index.html)から受信した応答 RUNシステム('php avtestTimed.php 5 test.yakabod.net 1291646295'); 0.35701200で実行1291646299--SID492cdb3e3893d1fa6ea1a6e8b4961087を使用-test.yakabod.netに対して 1.5956890583038で(https://test.yakabod.net/activityViewer/index.html)から受信した応答 RUNシステム('php avtestTimed.php 5 test.yakabod.net 1291646295'); 0.16751000で実行1291646304-SIDb97a379d2a73a9bb8df2ab0ee9665417を使用-test.yakabod.netに対して 1.5704379081726で(https://test.yakabod.net/activityViewer/index.html)から受信した応答 RUNシステム('php avtestTimed.php 5 test.yakabod.net 1291646295'); 0.515963001291646308で実行-SID997b017d830cdd357036a24dd77313e9を使用-test.yakabod.netに対して 1.5980801582336で(https://test.yakabod.net/activityViewer/index.html)から受信した応答 RUNシステム('php avtestTimed.php 5 test.yakabod.net 1291646295'); 0.89809900で実行1291646312-SIDc512edc3491fb6ebc11ce72d547af201を使用-test.yakabod.netに対して 1.5987639427185で(https://test.yakabod.net/activityViewer/index.html)から受信した応答 RUNシステム('php avtestTimed.php 5 test.yakabod.net 1291646295');
ここで私がする必要があるのは、2つの変数を取ることです。1。0.51596300で実行1291646308 2. 1.5987639427185の(https://test.yakabod.net/activityViewer/index.html)から受信した応答
そしてそれらをteo変数に格納します:$ exec_at $ receive_atそして、これらの値でRRDToolを更新します。これを行う方法に関するヒントはありますか?、プロットしようとしているのは次のとおりです。1.変数で実行するための線グラフ2.応答のための散布図
ありがとう、-カマル。