Commit 7c4ca686 authored by Leigh B Stoller's avatar Leigh B Stoller

Bump timeout, and bug fix for first 24 hour email.

parent e9fccb12
...@@ -131,6 +131,7 @@ $SIG{HUP} = \&handler ...@@ -131,6 +131,7 @@ $SIG{HUP} = \&handler
if (! ($debug || $oneshot)); if (! ($debug || $oneshot));
print "Pool Monitor starting... pid $$, at ".`date`; print "Pool Monitor starting... pid $$, at ".`date`;
$lastmail = time();
while (1) { while (1) {
if (NoLogins()) { if (NoLogins()) {
...@@ -153,7 +154,7 @@ while (1) { ...@@ -153,7 +154,7 @@ while (1) {
while (my ($node_id) = $query_result->fetchrow_array()) { while (my ($node_id) = $query_result->fetchrow_array()) {
print "Checking to see if $node_id is reactive ...\n"; print "Checking to see if $node_id is reactive ...\n";
my $status = SSHwithTimeout($node_id, "ls / > /dev/null", 15, $debug); my $status = SSHwithTimeout($node_id, "ls / > /dev/null", 30, $debug);
if ($status) { if ($status) {
print "--> $node_id is down for the count!\n"; print "--> $node_id is down for the count!\n";
if (!exists($warned{$node_id})) { if (!exists($warned{$node_id})) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment