mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
SYSMON: null reading for absent mount points
git-svn-id: https://svn.fhem.de/fhem/trunk@4758 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
083dbbff24
commit
403bc263d5
@ -1,6 +1,7 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
- SVN
|
- SVN
|
||||||
|
- bugfix: SYSMON: null reading for absent mount points
|
||||||
- feature: DbLog: jokers "%" in device/reading definition are now possible
|
- feature: DbLog: jokers "%" in device/reading definition are now possible
|
||||||
- feature: SYSMON: new CPU Statistics and Plots
|
- feature: SYSMON: new CPU Statistics and Plots
|
||||||
- feature: changed 10_OWServer.pm and 11_OWDevice.pm to use
|
- feature: changed 10_OWServer.pm and 11_OWDevice.pm to use
|
||||||
|
@ -30,7 +30,7 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my $VERSION = "1.3.2";
|
my $VERSION = "1.3.3";
|
||||||
|
|
||||||
use constant {
|
use constant {
|
||||||
DATE => "date",
|
DATE => "date",
|
||||||
@ -981,6 +981,13 @@ sub SYSMON_getFileSystemInfo ($$$)
|
|||||||
|
|
||||||
shift @filesystems;
|
shift @filesystems;
|
||||||
|
|
||||||
|
# Falls kein Eintrag gefunden (z.B: kein Medium im Laufwerk), mit Nullen fuellen (damit die Plots richtig funktionieren).
|
||||||
|
if(defined $fDef) {
|
||||||
|
$map->{$fName} = "Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at ".$fs;
|
||||||
|
} else {
|
||||||
|
$map->{+FS_PREFIX.$fs} = "Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at ".$fs;
|
||||||
|
}
|
||||||
|
|
||||||
if(!defined $filesystems[0]) { return $map; } # Ausgabe leer
|
if(!defined $filesystems[0]) { return $map; } # Ausgabe leer
|
||||||
|
|
||||||
logF($hash, "SYSMON_getFileSystemInfo", "analyse line $filesystems[0]");
|
logF($hash, "SYSMON_getFileSystemInfo", "analyse line $filesystems[0]");
|
||||||
@ -1001,13 +1008,14 @@ sub SYSMON_getFileSystemInfo ($$$)
|
|||||||
} else {
|
} else {
|
||||||
$map->{+FS_PREFIX.$mnt_point} = $out_txt;
|
$map->{+FS_PREFIX.$mnt_point} = $out_txt;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if(defined $fDef) {
|
|
||||||
$map->{$fName} = "not available";
|
|
||||||
} else {
|
|
||||||
$map->{+FS_PREFIX.$fs} = "not available";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
# else {
|
||||||
|
# if(defined $fDef) {
|
||||||
|
# $map->{$fName} = "not available";
|
||||||
|
# } else {
|
||||||
|
# $map->{+FS_PREFIX.$fs} = "not available";
|
||||||
|
# }
|
||||||
|
#}
|
||||||
|
|
||||||
return $map;
|
return $map;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user