mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Hinzugefuegt:
* Load Average Graphen Geaendert: * MC - Tasten F1 bis F5 sollten wieder gehen. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@259 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
13
config/cron/minutely/loadstat
Normal file
13
config/cron/minutely/loadstat
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use RRDs;
|
||||
my $LOAD = '';
|
||||
my $CMD = "awk '{print \$1\":\"\$2\":\"\$3}' < /proc/loadavg";
|
||||
$LOAD=`$CMD`;
|
||||
chomp($LOAD);
|
||||
RRDs::update ("/var/log/rrd/load.rrd",
|
||||
"-t", "load1:load5:load15",
|
||||
"N:$LOAD");
|
||||
|
||||
my $ERROR = RRDs::error;
|
||||
print "$ERROR\n" if $ERROR;
|
||||
Reference in New Issue
Block a user