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:
ms
2006-08-28 14:18:38 +00:00
parent 7ccede9b39
commit 207cc1cf86
6 changed files with 87 additions and 2 deletions

View 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;