summaryrefslogtreecommitdiff
path: root/src/pmie/examples/upm.03
diff options
context:
space:
mode:
Diffstat (limited to 'src/pmie/examples/upm.03')
-rw-r--r--src/pmie/examples/upm.038
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pmie/examples/upm.03 b/src/pmie/examples/upm.03
new file mode 100644
index 0000000..ff7501e
--- /dev/null
+++ b/src/pmie/examples/upm.03
@@ -0,0 +1,8 @@
+//
+// Refine the preceding rule to apply only between the hours of 9am and 5pm,
+// and to require that just 3 of the four samples exceed the threshold
+//
+$hour >= 9 && $hour <= 17 && some_inst 75 %_sample
+ disk.dev.total @0..3 > 40 count/sec
+ -> print "disk busy for 20 sec" &
+ shell 5 min "dkvis";