diff options
Diffstat (limited to 'util/get.cs.flt.pl')
-rw-r--r-- | util/get.cs.flt.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/get.cs.flt.pl b/util/get.cs.flt.pl new file mode 100644 index 00000000..9421abc4 --- /dev/null +++ b/util/get.cs.flt.pl @@ -0,0 +1,8 @@ +#!/usr/bin/perl +@r = split(' ', $t = `/usr/bin/vmstat -n 0 -c 5 1`); +open FH, '>/tmp/mrtg.cs'; +print FH (($r[52]+$r[69]+$r[86]+$r[103])/4); +close FH; +open FH, '>/tmp/mrtg.flt'; +print FH (($r[44]+$r[61]+$r[78]+$r[95])/4); +close FH; |