summaryrefslogtreecommitdiff
path: root/src/pmie/examples/upm.06
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
commit47e6e7c84f008a53061e661f31ae96629bc694ef (patch)
tree648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /src/pmie/examples/upm.06
downloadpcp-debian/3.9.10.tar.gz
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'src/pmie/examples/upm.06')
-rw-r--r--src/pmie/examples/upm.0610
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pmie/examples/upm.06 b/src/pmie/examples/upm.06
new file mode 100644
index 0000000..dbf9da9
--- /dev/null
+++ b/src/pmie/examples/upm.06
@@ -0,0 +1,10 @@
+delta = 10 mins; // force evaluation once every 10 minutes from here on
+
+// If either the / or the /usr filesystem is more than 95% full, display
+// an alarm popup, but not if it has already been displayed during the last
+// 24 hours
+//
+filesys.free #'/dev/root' / filesys.capacity #'/dev/root' < 0.05
+ -> alarm 24 hour "root filesystem (almost) full";
+filesys.free #'/dev/usr' / filesys.capacity #'/dev/usr' < 0.05
+ -> alarm 24 hour "/usr filesystem (almost) full";