summaryrefslogtreecommitdiff
path: root/src/pmie/examples/uag.21
diff options
context:
space:
mode:
Diffstat (limited to 'src/pmie/examples/uag.21')
-rw-r--r--src/pmie/examples/uag.219
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pmie/examples/uag.21 b/src/pmie/examples/uag.21
new file mode 100644
index 0000000..c841ff2
--- /dev/null
+++ b/src/pmie/examples/uag.21
@@ -0,0 +1,9 @@
+//
+// a rule expression with multiple actions and %-binding in the
+// arguments for the action methods ... use some creative string
+// composition for the final message
+//
+some_inst ( disk.dev.total > 50 )
+ -> syslog 10 mins "Busy disks: " "%i @ %v IOPS " &
+ shell 1 hour "echo 'REALLY busy disks: " "%i @ %v I/Os per second " "' | Mail -s 'pmie alarm' sysadm";
+