]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Fix disk (media/hardware) graphs with xen.
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 23 Feb 2010 20:02:15 +0000 (21:02 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 23 Feb 2010 20:02:15 +0000 (21:02 +0100)
config/collectd/collectd.conf
html/cgi-bin/hardwaregraphs.cgi
html/cgi-bin/media.cgi

index a148b084a321ccad7c8cd966092b7ed27c8a9b56..07349c8f31816fd518bf506d0475401bfe47ebbc 100644 (file)
@@ -37,7 +37,7 @@ LoadPlugin syslog
 </Plugin>
 
 <Plugin "disk">
-       Disk "/[0-9]$/"
+       Disk "/[hs]d[a-z][0-9]$/"
        IgnoreSelected true
 </Plugin>
 
index 16000de3db707083e85a4fe95543dc0f016e24d4..dabdfd1aeeeed3af82f9f4c384890de0b622e1d0 100644 (file)
@@ -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]);
index 4fe472a029f5c0002c57ec7eb5313b90dfe082b7..6a89ca86774710c29dc19f3398aa800f4b344568 100644 (file)
@@ -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);