Update Munin graphing scripts for new field names
authorQuentin Smith <quentin@mit.edu>
Thu, 11 Aug 2011 05:41:45 +0000 (01:41 -0400)
committerQuentin Smith <quentin@mit.edu>
Thu, 11 Aug 2011 05:41:45 +0000 (01:41 -0400)
web/all-usage.cgi
web/usage.cgi

index 20d5eb4..efc8a2c 100755 (executable)
@@ -46,7 +46,7 @@ my $type = $q->param("type") || "cpu";
 $type =~ m|^(\w+)$| or die "Invalid graph type";
 $type = $graph_types{$1} or die "Invalid graph type";
 
 $type =~ m|^(\w+)$| or die "Invalid graph type";
 $type = $graph_types{$1} or die "Invalid graph type";
 
-my $path = catfile(GRAPH_DIR, "*-$type-????????_????_????_????_????????????-?.rrd");
+my $path = catfile(GRAPH_DIR, "*-$type-uuid_????????_????_????_????_????????????-?.rrd");
 my @files = glob $path or die "No data found";
 
 push @args, "--start", "-".$days."d";
 my @files = glob $path or die "No data found";
 
 push @args, "--start", "-".$days."d";
index 5675e09..e815d78 100755 (executable)
@@ -50,7 +50,7 @@ my $type = $q->param("type") || "cpu";
 $type =~ m|^(\w+)$| or die "Invalid graph type";
 $type = $graph_types{$1} or die "Invalid graph type";
 
 $type =~ m|^(\w+)$| or die "Invalid graph type";
 $type = $graph_types{$1} or die "Invalid graph type";
 
-my $path = catfile(GRAPH_DIR, "*-$type-$uuid-?.rrd");
+my $path = catfile(GRAPH_DIR, "*-$type-uuid_$uuid-?.rrd");
 my @files = glob $path or die "No data found";
 
 push @args, "--start", "-".$days."d";
 my @files = glob $path or die "No data found";
 
 push @args, "--start", "-".$days."d";