blob: 856d8edee50dd4eeb265424a0376a745cd4120db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//
// at least $threshold full and at the current rate of growth will fill
// the file system in less than $lead_time
// ie. used + $lead_time * growth-rate > capacity
delta = 1 min; // check every minute
threshold = 40; // must be at least this full now (percentage)
lead_time = "15min"; // lead time before the filesystem will be full
some_inst (
100 * filesys.used / filesys.capacity > $threshold &&
filesys.used + $lead_time * ( rate filesys.used ) >
filesys.capacity
) -> print "filesystem will be full within $lead_time:" " %i";
|