summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorjeff <jeff>2010-01-04 03:23:45 +0000
committerjeff <jeff>2010-01-04 03:23:45 +0000
commit551eccdc359883b2a78edf8672b4766000876650 (patch)
treeb21a44b1d108e18d88bb01519450489693fc67d5 /bin
parentf8ecdcae961003312ce3c65113c87a9a2565fdd2 (diff)
add some debugging
Diffstat (limited to 'bin')
-rwxr-xr-xbin/monitor4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/monitor b/bin/monitor
index b0b5706bb..8dac70056 100755
--- a/bin/monitor
+++ b/bin/monitor
@@ -41,6 +41,10 @@ while (1) {
my(undef, $load, undef) = report('load');
my($free) = report('freememory');
+ warn "free is $free and wantfree is $wantfree\n" if $DEBUG > 1;
+ warn "load is $load and wantload is $wantload\n" if $DEBUG > 1;
+ warn "last is $last\n" if $DEBUG > 1;
+
unless( defined($load) && $load < $wantload
&& defined($free) && $free > $wantfree
|| ( time() < $last + 1800 && $alerts > 2 ) )