~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to src/scripts/tunerrd.pl

  • Committer: ipfire
  • Date: 2006-02-15 21:15:54 UTC
  • Revision ID: git-v1:cd1a2927226c734d96478e12bb768256fb64a06a


git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
 
 
3
use RRDs;
 
4
 
 
5
# Settings
 
6
my $rrdlog = "/var/log/rrd";
 
7
$ENV{PATH}="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin";
 
8
 
 
9
RRDs::tune ("$rrdlog/cpu.rrd",
 
10
"-h", "user:600",
 
11
"-h", "system:600",
 
12
"-h", "idle:600");
 
13
 
 
14
RRDs::tune ("$rrdlog/mem.rrd",
 
15
"-h", "memused:600",
 
16
"-h", "memfree:600",
 
17
"-h", "memshared:600",
 
18
"-h", "membuffers:600",
 
19
"-h", "memcache:600",
 
20
"-h", "swapused:600",
 
21
"-h", "swapfree:600");
 
22
 
 
23
RRDs::tune ("$rrdlog/disk.rrd",
 
24
"-h", "readsect:600",
 
25
"-h", "writesect:600");
 
26
 
 
27
RRDs::tune ("$rrdlog/RED.rrd",
 
28
"-h", "incoming:600",
 
29
"-h", "outgoing:600");
 
30
 
 
31
RRDs::tune ("$rrdlog/GREEN.rrd",
 
32
"-h", "incoming:600",
 
33
"-h", "outgoing:600");
 
34
# end of script