From: Arne Fitzenreiter Date: Tue, 23 Feb 2010 20:02:15 +0000 (+0100) Subject: Fix disk (media/hardware) graphs with xen. X-Git-Tag: v2.9-beta1~412^2~51 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=fac92c6d25038f61430a4e872e720ba00b539385;hp=a6b8b894848742ff0afe25ef62c2117e67b44311 Fix disk (media/hardware) graphs with xen. --- diff --git a/config/collectd/collectd.conf b/config/collectd/collectd.conf index 2f86f0795d..b0166e5d63 100644 --- a/config/collectd/collectd.conf +++ b/config/collectd/collectd.conf @@ -37,7 +37,7 @@ LoadPlugin syslog - Disk "/[0-9]$/" + Disk "/[hs]d[a-z][0-9]$/" IgnoreSelected true diff --git a/html/cgi-bin/hardwaregraphs.cgi b/html/cgi-bin/hardwaregraphs.cgi index 16000de3db..dabdfd1aee 100644 --- a/html/cgi-bin/hardwaregraphs.cgi +++ b/html/cgi-bin/hardwaregraphs.cgi @@ -67,7 +67,7 @@ if ( $querry[0] =~ "hwtemp"){ print "Content-type: image/png\n\n"; binmode(STDOUT); &Graphs::updatethermaltempgraph($querry[1]); -}elsif ( $querry[0] =~ "sd?" || $querry[0] =~ "hd?" ){ +}elsif ( $querry[0] =~ "sd?" || $querry[0] =~ "hd?" || $querry[0] =~ "xvd??" ){ print "Content-type: image/png\n\n"; binmode(STDOUT); &Graphs::updatehddgraph($querry[0],$querry[1]); diff --git a/html/cgi-bin/media.cgi b/html/cgi-bin/media.cgi index 4fe472a029..6a89ca8677 100644 --- a/html/cgi-bin/media.cgi +++ b/html/cgi-bin/media.cgi @@ -47,7 +47,7 @@ $querry[1] = 'hour' unless defined $querry[1]; my @devices = `kudzu -qps -c HD | grep device: | cut -d" " -f2 | sort | uniq`; -if ( $querry[0] =~ "sd?" || $querry[0] =~ "hd?" ){ +if ( $querry[0] =~ "sd?" || $querry[0] =~ "hd?" || $querry[0] =~ "xvd??"){ print "Content-type: image/png\n\n"; binmode(STDOUT);