my $ssh_timeout = 10;
my $ssh_options = "-o ConnectTimeout=$ssh_timeout -o PreferredAuthentications=hostbased,publickey";
+# OBSOLETE, to be removed
# List of regex that match fatal error message that do not
# generate disconnection line in log. This is to prevent
# sessions in the sessions charts to increase continually.
}
}
+# OBSOLETE: to be removed
sub is_session_closed
{
map { return 1 if ($_[0] =~ $_); } @session_closed_msg;
}
# Remove session failure from current workload because there is no disconnection entry
- if ( ($prefix_vars{'t_loglevel'} eq 'FATAL')
- && &is_session_closed($prefix_vars{'t_query'}) )
- {
- delete $current_sessions{$prefix_vars{'t_pid'}} if (!$disable_session);
+ if (!$disable_session && ($prefix_vars{'t_loglevel'} eq 'FATAL')) {
+ delete $current_sessions{$prefix_vars{'t_pid'}};
if ($extension eq 'tsung') {
delete $tsung_session{$prefix_vars{'t_pid'}}
}