2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

filesystems may be wrong on some systems

git-svn-id: https://svn.fhem.de/fhem/trunk@4678 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister 2014-01-17 23:40:04 +00:00
parent bdeba633c6
commit 5bcc781e85
2 changed files with 8 additions and 2 deletions

View File

@ -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: filesystems may be wrong on some systems
- feature: new module 98_pilight.pm added (andreas-fey) - feature: new module 98_pilight.pm added (andreas-fey)
- change: LUXTRONIK2: made compatible with current developer guidelines (Blocking.pm, reading update mechanism) - change: LUXTRONIK2: made compatible with current developer guidelines (Blocking.pm, reading update mechanism)
- feature: readingsGroup: added icons and links/commands - feature: readingsGroup: added icons and links/commands

View File

@ -827,6 +827,7 @@ sub SYSMON_getFileSystemInfo ($$$)
my @filesystems = SYSMON_execute($hash, $disk); my @filesystems = SYSMON_execute($hash, $disk);
shift @filesystems; shift @filesystems;
if (index($filesystems[0], $fs) < 0) { shift @filesystems; } # Wenn die Bezeichnung so lang ist, dass die Zeile umgebrochen wird...
if (index($filesystems[0], $fs) >= 0) # check if filesystem available -> gives failure on console if (index($filesystems[0], $fs) >= 0) # check if filesystem available -> gives failure on console
{ {
my ($fs_desc, $total, $used, $available, $percentage_used, $mnt_point) = split(/\s+/, $filesystems[0]); my ($fs_desc, $total, $used, $available, $percentage_used, $mnt_point) = split(/\s+/, $filesystems[0]);
@ -1128,7 +1129,10 @@ sub trim($)
<a name="SYSMON"></a> <a name="SYSMON"></a>
<h3>SYSMON</h3> <h3>SYSMON</h3>
<ul> <ul>
This module provides statistics about the system running FHEM server. Only Linux-based systems are supported. Some information are hardware specific and are not available on any platform. So far, this module has been tested on the following systems: Raspberry Pi (Debian Wheezy) BeagleBone Black, Fritz box 7390 (no CPU data). This module provides statistics about the system running FHEM server. Only Linux-based systems are supported.
Some information are hardware specific and are not available on any platform.
So far, this module has been tested on the following systems:
Raspberry Pi (Debian Wheezy) BeagleBone Black, Fritz box 7390 (no CPU data), WR703N under OpenWrt (no CPU Data).
<br><br> <br><br>
<b>Define</b> <b>Define</b>
<br><br> <br><br>
@ -1503,7 +1507,8 @@ If one (or more) of the multiplier is set to zero, the corresponding readings is
Dieses Modul liefert diverse Informationen und Statistiken zu dem System, auf dem FHEM-Server ausgef&uuml;hrt wird. Dieses Modul liefert diverse Informationen und Statistiken zu dem System, auf dem FHEM-Server ausgef&uuml;hrt wird.
Es werden nur Linux-basierte Systeme unterst&uuml;tzt. Manche Informationen sind hardwarespezifisch und sind daher nicht auf jeder Plattform Es werden nur Linux-basierte Systeme unterst&uuml;tzt. Manche Informationen sind hardwarespezifisch und sind daher nicht auf jeder Plattform
verf&uuml;gbar. verf&uuml;gbar.
Bis jetzt wurde dieses Modul auf folgenden Systemen getestet: Raspberry Pi (Debian Wheezy), BeagleBone Black, FritzBox 7390 (keine CPU-Daten). Bis jetzt wurde dieses Modul auf folgenden Systemen getestet: Raspberry Pi (Debian Wheezy), BeagleBone Black,
FritzBox 7390 (keine CPU-Daten), WR703N unter OpenWrt.
<br><br> <br><br>
<b>Define</b> <b>Define</b>
<br><br> <br><br>