summaryrefslogtreecommitdiff
path: root/src/pmie/examples/uag.20
diff options
context:
space:
mode:
Diffstat (limited to 'src/pmie/examples/uag.20')
-rw-r--r--src/pmie/examples/uag.207
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pmie/examples/uag.20 b/src/pmie/examples/uag.20
new file mode 100644
index 0000000..475017c
--- /dev/null
+++ b/src/pmie/examples/uag.20
@@ -0,0 +1,7 @@
+//
+// a rule expression with multiple actions and %-binding in the
+// arguments for the action methods
+//
+some_inst ( disk.dev.total > 60 )
+ -> syslog 10 mins "[%i] busy, %v IOPS " &
+ shell 1 hour "echo 'Disk %i is REALLY busy. Running at %v I/Os per second' | Mail -s 'pmie alarm' sysadm";