summaryrefslogtreecommitdiff
path: root/src/pmie/examples/upm.09
blob: e2f12cf83ba4bcf6b80e1c89710ad059458505e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Busy disk?

delta = 20 sec;		// force evaluation once every 20 seconds from here on

// If any disk is performing more than 60 I/Os per second, then
// print a message to standard output and launch dkvis(1)
//
some_inst
    disk.dev.total > 60 count/sec
	-> print "disk busy for 20 sec" "%v IOPS %i@%h" &
	   shell 5 min "dkvis";