Fix disk (media/hardware) graphs with xen.

This commit is contained in:
Arne Fitzenreiter
2010-02-23 21:02:15 +01:00
parent a6b8b89484
commit fac92c6d25
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ LoadPlugin syslog
</Plugin>
<Plugin "disk">
Disk "/[0-9]$/"
Disk "/[hs]d[a-z][0-9]$/"
IgnoreSelected true
</Plugin>

View 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]);

View 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);