summaryrefslogtreecommitdiff
path: root/src/pmie/examples/upm.04
diff options
context:
space:
mode:
Diffstat (limited to 'src/pmie/examples/upm.04')
-rw-r--r--src/pmie/examples/upm.0410
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pmie/examples/upm.04 b/src/pmie/examples/upm.04
new file mode 100644
index 0000000..36c9699
--- /dev/null
+++ b/src/pmie/examples/upm.04
@@ -0,0 +1,10 @@
+//
+// Refine the preceding rule further to print the host name and disk name
+// for which the threshold is exceeded
+//
+$hour >= 9 && $hour <= 17 &&
+some_inst (
+ 75 %_sample (
+ disk.dev.total @0..3 > 40 count/sec
+ )
+) -> print "disks busy for 20 sec:" " [%h]%i";