X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=bin%2Fmonitor;h=8dac70056e89e17385042ed20bbcb50225b10975;hp=b0b5706bbd096bf59bc8e18602fcf4cffe4a1530;hb=811c95da18776232da103fd445e2def019f98d5b;hpb=63a268637b2d51a8766412617724b9436439deb6 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 ) )