diff --git a/FHEM/32_SYSSTAT.pm b/FHEM/32_SYSSTAT.pm index 92dbb3269..6c8268203 100644 --- a/FHEM/32_SYSSTAT.pm +++ b/FHEM/32_SYSSTAT.pm @@ -43,7 +43,7 @@ SYSSTAT_Initialize($) $hash->{SetFn} = "SYSSTAT_Set"; $hash->{GetFn} = "SYSSTAT_Get"; $hash->{AttrFn} = "SYSSTAT_Attr"; - $hash->{AttrList} = "disable:1 disabledForIntervals raspberrycpufreq:1 raspberrytemperature:0,1,2 synologytemperature:0,1,2 stat:1 uptime:1,2 noSSH:1,0 ssh_user"; + $hash->{AttrList} = "disable:1 disabledForIntervals raspberrycpufreq:1 raspberrytemperature:0,1,2 synologytemperature:0,1,2 stat:1 uptime:1,2 load:0 noSSH:1,0 ssh_user"; $hash->{AttrList} .= " snmp:1,0 mibs:textField-long snmpVersion:1,2 snmpCommunity" if( $SYSSTAT_hasSNMP ); $hash->{AttrList} .= " filesystems showpercent readings:textField-long readingsFormat:textField-long"; $hash->{AttrList} .= " useregex:1"; @@ -123,6 +123,8 @@ SYSSTAT_Disconnect($) delete($hash->{FD}); delete($selectlist{$name}); + $hash->{PARTIAL} =''; + $hash->{STATE} = "Disconnected"; Log3 $name, 3, "$name: Disconnected"; $hash->{LAST_DISCONNECT} = FmtDateTime( gettimeofday() ); @@ -1019,7 +1021,7 @@ SYSSTAT_GetUpdateSNMP($) return undef if( IsDisabled($name) > 0 ); } - SYSSTAT_getLoadAVGSNMP($hash); + SYSSTAT_getLoadAVGSNMP($hash) if( AttrVal($name, 'load', 1) > 0 ); SYSSTAT_getFilesystemsSNMP($hash) if( $hash->{do_diskusage} && $#{$hash->{filesystems}} >= 0 ); @@ -1552,6 +1554,8 @@ attr readingsFormat { frequency => '{ $VALUE = [map {int($_ / 1000)} sp
  • uptime
    If set and > 0 the system uptime is read.
    If set to 2 the uptime is displayed in seconds.
  • +
  • load
    + If set and = 0 the system load is not read.
  • useregex
    If set the entries of the filesystems list are treated as regex.
  • ssh_user
    @@ -1714,6 +1718,8 @@ attr readingsFormat { frequency => '{ $VALUE = [map {int($_ / 1000)} sp
  • uptime
    Wenn gesetzt und > 0 wird die Betriebszeit (uptime) des Systems ausgelesen.
    Wenn Wert 2 ist, wird die Betriebszeit (uptime) in Sekunden angezeigt.
  • +
  • load
    + Wenn gesetzt und = 0 wird die last (load) des nicht Systems ausgelesen.
  • useregex
    Wenn Wert gesetzt, werden die Einträge der Dateisysteme als regex behandelt.
  • ssh_user