blob: eaa0c4285daf87159fbdd143c042d1d7a39f73f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
delta = 5 sec; // force evaluation once every 5 seconds from here on
// If for any disk, for all 4 samples (20 seconds), the disk is performing
// more than 40 I/Os per second, then print a message to standard output and
// then launch dkvis(1)
//
some_inst all_sample
disk.dev.total @0..3 > 40 count/sec
-> print "disks busy for 20 sec:" " %i" &
shell 5 min "dkvis";
// If any disk is performing more than 60 I/Os per second, then
// print a message identifying the busy disk to standard output and
// launch dkvis(1)
some_inst (
disk.dev.total > 60 count/sec
) -> print "busy disks:" " %i" &
shell 5 min "dkvis";
|