summaryrefslogtreecommitdiff
path: root/src/pmie/examples/upm.05
diff options
context:
space:
mode:
Diffstat (limited to 'src/pmie/examples/upm.05')
-rw-r--r--src/pmie/examples/upm.059
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pmie/examples/upm.05 b/src/pmie/examples/upm.05
new file mode 100644
index 0000000..702747e
--- /dev/null
+++ b/src/pmie/examples/upm.05
@@ -0,0 +1,9 @@
+//
+// Macro for use ...
+//
+bc = "buffer_cache";
+// Using the above macro; If the buffer cache is in use (more than 50 read
+// requests) with hit ratio less than 90%, then popup an alarm
+//
+$bc.getblks > 50 && $bc.getfound / $bc.getblks < 0.9
+ -> alarm "poor buffer cache hit rate";