X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/munin.git/blobdiff_plain/fffa6ac25f2492ddcc4e1ab8d7e46ec656bb6932..4a9504b23e0e16ed3480ec7a7e62cad24b7888d3:/web/all-usage.cgi diff --git a/web/all-usage.cgi b/web/all-usage.cgi index 20d5eb4..40b2c29 100755 --- a/web/all-usage.cgi +++ b/web/all-usage.cgi @@ -7,6 +7,8 @@ use CGI::Carp qw(fatalsToBrowser); use RRDs; use File::Spec::Functions; +$ENV{"RRDCACHED_ADDRESS"} = "/var/run/munin/rrdcached.sock"; + our %graph_types = (cpu => "xen_cpu"); our %formats = qw(svg image/svg+xml png image/png eps application/postscript pdf application/pdf); @@ -46,7 +48,7 @@ my $type = $q->param("type") || "cpu"; $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";