File monitoring-plugins-mysql_health-destroy_connection.patch of Package monitoring-plugins-mysql_health
Index: check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server.pm
===================================================================
--- check_mysql_health-2.1.8.2.orig/plugins-scripts/Nagios/DBD/MySQL/Server.pm
+++ check_mysql_health-2.1.8.2/plugins-scripts/Nagios/DBD/MySQL/Server.pm
@@ -1545,9 +1545,9 @@ sub execute {
sub DESTROY {
my $self = shift;
- #$self->trace(sprintf "disconnecting DBD %s",
- # $self->{handle} ? "with handle" : "without handle");
- #$self->{handle}->disconnect() if $self->{handle};
+ $self->trace(sprintf "disconnecting DBD %s",
+ $self->{handle} ? "with handle" : "without handle");
+ $self->{handle}->disconnect() if $self->{handle};
}
1;