summaryrefslogtreecommitdiff
path: root/src/pmdas/hotproc/general.pmie
diff options
context:
space:
mode:
Diffstat (limited to 'src/pmdas/hotproc/general.pmie')
-rwxr-xr-xsrc/pmdas/hotproc/general.pmie29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/pmdas/hotproc/general.pmie b/src/pmdas/hotproc/general.pmie
new file mode 100755
index 0000000..6f4929c
--- /dev/null
+++ b/src/pmdas/hotproc/general.pmie
@@ -0,0 +1,29 @@
+// this pmie configuration files assumes the hotproc PMDA has been
+// configured with the "general.conf" configuration file, and thus
+// is using as predicate something like:
+//
+// cpuburn > 0.95 || iodemand > 500 || syscalls > 100
+// || iowait > 0.33 || schedwait > 0.25
+//
+
+delta = 60sec; // change this if the hotproc PMDA refresh interval
+ // is different to the default of 60 seconds
+
+some_inst 100 * hotproc.psinfo.time > 95
+ -> print "\nCPU: %v% busy %i";
+
+io_bytes = "hotproc.accounting.counts";
+some_inst
+ (($io_bytes.chr + $io_bytes.chw) / 1024) > 500
+ -> print "\nI/O: %v Kbyte/sec %i";
+
+some_inst hotproc.psusage.sysc > 100
+ -> print "\nsyscall: %v call/sec %i";
+
+io_timers = "hotproc.accounting.timers";
+some_inst
+ 100 * ( $io_timers.bwtime + $io_timers.rwtime ) > 33
+ -> print "\nI/O: %v% waiting %i";
+
+some_inst 100 * $io_timers.qwtime > 25
+ -> print "\nCPU: %v% runq waiting %i";