projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f8ecdca
)
add some debugging
author
jeff
<jeff>
Mon, 4 Jan 2010 03:23:45 +0000
(
03:23
+0000)
committer
jeff
<jeff>
Mon, 4 Jan 2010 03:23:45 +0000
(
03:23
+0000)
bin/monitor
patch
|
blob
|
history
diff --git
a/bin/monitor
b/bin/monitor
index
b0b5706
..
8dac700
100755
(executable)
--- a/
bin/monitor
+++ b/
bin/monitor
@@
-41,6
+41,10
@@
while (1) {
my(undef, $load, undef) = report('load');
my($free) = report('freememory');
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 ) )
unless( defined($load) && $load < $wantload
&& defined($free) && $free > $wantfree
|| ( time() < $last + 1800 && $alerts > 2 ) )