X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fmonitor;h=5108d804dd8b8b9dcf46abedd5775779c546003c;hb=a0e1759e5c4300aa48bd137f8e5cbb4aa0e36778;hp=b0b5706bbd096bf59bc8e18602fcf4cffe4a1530;hpb=c7c3d9669ba1e30d0bb732a2b5f899d74e6d7473;p=freeside.git 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 ) )