summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeff <jeff>2010-01-04 03:25:21 +0000
committerjeff <jeff>2010-01-04 03:25:21 +0000
commitb3c871f7ddc1bef3bf160d94d86685aa26d01178 (patch)
tree3c7a26f098e35794284776bd84b95bdc16392504
parentb0cfa107afc1e75b94de0d1de3206d324a9372ef (diff)
add some debugging
-rwxr-xr-xbin/monitor4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/monitor b/bin/monitor
index b0b5706bb..5108d804d 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 ) )