Update of /cvsroot/sysfence/sysfence/doc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15081/doc
Modified Files:
example.conf
Log Message:
+ info on nproc monitoring
Index: example.conf
===================================================================
RCS file: /cvsroot/sysfence/sysfence/doc/example.conf,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- example.conf 29 May 2004 16:42:05 -0000 1.8
+++ example.conf 21 Jun 2004 16:13:09 -0000 1.9
@@ -47,6 +47,7 @@
# freespace - free disk (or other fs-device) space
# usedspace - used disk space
# availspace - available disk space (free - space reserved for superuser)
+# nproc - active processes (threads)
#
when "memory low" {
@@ -84,6 +85,14 @@
# spacefree freespace
# spaceavail availspace spaceavailable availablespace
#
+# for processes:
+# nproc processes numproc procnum
+# run running
+# stop stopped traced
+# sleep sleeping
+# unint io uninterruptible
+# zombie defunct
+#
# ...and operators:
#
# = ==
@@ -94,6 +103,23 @@
# and andalso &&
# or orelse ||
#
+#
+#
+# To watch active processes, use:
+
+rule "proc watcher" {
+ nproc "root", "emes" > 100
+ or
+ nproc "emes" > 80
+ or
+ nproc "httpd" zombie > 0
+ or
+ nproc "mysql", "postgresql" uninterruptible, stopped > 0
+}
+run 'echo "example rule hit"'
+
+
+#
# Good luck!
#
# $Id$
|