summaryrefslogtreecommitdiff
path: root/src/pmie/examples/upm.06
diff options
context:
space:
mode:
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";