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