projects
/
invirt/scripts/munin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use rrdcached for graphs
[invirt/scripts/munin.git]
/
web
/
usage.cgi
diff --git
a/web/usage.cgi
b/web/usage.cgi
index
2123506
..
fe32b46
100755
(executable)
--- a/
web/usage.cgi
+++ b/
web/usage.cgi
@@
-7,6
+7,8
@@
use RRDs;
use File::Spec::Functions;
use subs 'die';
use File::Spec::Functions;
use subs 'die';
+$ENV{"RRDCACHED_ADDRESS"} = "/var/run/munin/rrdcached.sock";
+
our %graph_types =
(cpu =>
{
our %graph_types =
(cpu =>
{
@@
-82,7
+84,7
@@
if ($type{"sub_types"}) {
}
foreach my $sub_type (@sub_types) {
}
foreach my $sub_type (@sub_types) {
- my $cdef = $sub_type->{"cdef"} or $type{"cdef"};
+ my $cdef = $sub_type->{"cdef"} || $type{"cdef"};
my $suffix = $sub_type->{"suffix"};
my $path = catfile(GRAPH_DIR, "*-$type{plugin_name}-uuid_$uuid$suffix-?.rrd");
my $suffix = $sub_type->{"suffix"};
my $path = catfile(GRAPH_DIR, "*-$type{plugin_name}-uuid_$uuid$suffix-?.rrd");