Ein paar Rootfiles bearbeitet.
[people/pmueller/ipfire-2.x.git] / src / scripts / tunerrd.pl
CommitLineData
cd1a2927
MT
1#!/usr/bin/perl\r
2\r
3use RRDs;\r
4\r
5# Settings\r
6my $rrdlog = "/var/log/rrd";\r
7$ENV{PATH}="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin";\r
8\r
9RRDs::tune ("$rrdlog/cpu.rrd",\r
10"-h", "user:600",\r
11"-h", "system:600",\r
12"-h", "idle:600");\r
13\r
14RRDs::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
23RRDs::tune ("$rrdlog/disk.rrd",\r
24"-h", "readsect:600",\r
25"-h", "writesect:600");\r
26\r
27RRDs::tune ("$rrdlog/RED.rrd",\r
28"-h", "incoming:600",\r
29"-h", "outgoing:600");\r
30\r
31RRDs::tune ("$rrdlog/GREEN.rrd",\r
32"-h", "incoming:600",\r
33"-h", "outgoing:600");\r
34# end of script\r