mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 15:32:59 +02:00
Fix disk (media/hardware) graphs with xen.
This commit is contained in:
@@ -37,7 +37,7 @@ LoadPlugin syslog
|
||||
</Plugin>
|
||||
|
||||
<Plugin "disk">
|
||||
Disk "/[0-9]$/"
|
||||
Disk "/[hs]d[a-z][0-9]$/"
|
||||
IgnoreSelected true
|
||||
</Plugin>
|
||||
|
||||
|
||||
@@ -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]);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user