mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Deleted old Loadstat file, fixed logrotate warning, hwgraphs ignoring special characters, upgrade includes cgis by apache, made paralellism flag by config
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
#!/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