mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
32_SYSSTAT.pm: added disabledForIntervals
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8867 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1aeff3660d
commit
01d9b91e3d
@ -41,7 +41,7 @@ SYSSTAT_Initialize($)
|
|||||||
$hash->{UndefFn} = "SYSSTAT_Undefine";
|
$hash->{UndefFn} = "SYSSTAT_Undefine";
|
||||||
$hash->{GetFn} = "SYSSTAT_Get";
|
$hash->{GetFn} = "SYSSTAT_Get";
|
||||||
$hash->{AttrFn} = "SYSSTAT_Attr";
|
$hash->{AttrFn} = "SYSSTAT_Attr";
|
||||||
$hash->{AttrList} = "disable:1 raspberrycpufreq:1 raspberrytemperature:0,1,2 synologytemperature:0,1,2 stat:1 uptime:1,2 ssh_user ";
|
$hash->{AttrList} = "disable:1 disabledForIntervals raspberrycpufreq:1 raspberrytemperature:0,1,2 synologytemperature:0,1,2 stat:1 uptime:1,2 ssh_user ";
|
||||||
$hash->{AttrList} .= " snmp:1";
|
$hash->{AttrList} .= " snmp:1";
|
||||||
$hash->{AttrList} .= " filesystems showpercent";
|
$hash->{AttrList} .= " filesystems showpercent";
|
||||||
$hash->{AttrList} .= " useregex:1" if( $SYSSTAT_hasSysStatistics );
|
$hash->{AttrList} .= " useregex:1" if( $SYSSTAT_hasSysStatistics );
|
||||||
@ -246,7 +246,7 @@ SYSSTAT_GetUpdate($)
|
|||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer(gettimeofday()+$hash->{INTERVAL}, "SYSSTAT_GetUpdate", $hash, 0);
|
InternalTimer(gettimeofday()+$hash->{INTERVAL}, "SYSSTAT_GetUpdate", $hash, 0);
|
||||||
|
|
||||||
return if( AttrVal($name,"disable", 0) > 0 );
|
return if( IsDisabled($name) > 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
my $load = SYSSTAT_getLoadAVG( $hash );
|
my $load = SYSSTAT_getLoadAVG( $hash );
|
||||||
@ -782,6 +782,7 @@ SYSSTAT_getStat($)
|
|||||||
<code>attr sysstat filesystems /dev/.*</code><br>
|
<code>attr sysstat filesystems /dev/.*</code><br>
|
||||||
<code>attr sysstat filesystems 1,3,5</code><br>
|
<code>attr sysstat filesystems 1,3,5</code><br>
|
||||||
</ul></li></lu>
|
</ul></li></lu>
|
||||||
|
<li>disabledForIntervals HH:MM-HH:MM HH:MM-HH-MM...</li>
|
||||||
<li>showpercent<br>
|
<li>showpercent<br>
|
||||||
If set the usage is shown in percent. If not set the remaining free space in bytes is shown.</li>
|
If set the usage is shown in percent. If not set the remaining free space in bytes is shown.</li>
|
||||||
<li>snmp<br>
|
<li>snmp<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user