From: jeff Date: Mon, 4 Jan 2010 03:23:45 +0000 (+0000) Subject: add some debugging X-Git-Tag: root_of_svc_elec_features~562 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=551eccdc359883b2a78edf8672b4766000876650 add some debugging --- 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 ) )