Browse Source

check_mysql_health: Update to 2.2.2

tags/debian/17.20161211
Jan Wagner 4 years ago
parent
commit
7532d99d34
36 changed files with 49 additions and 25 deletions
  1. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/AUTHORS
  2. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/COPYING
  3. +4
    -2
      check_mysql_health/check_mysql_health-2.2.2/ChangeLog
  4. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/INSTALL
  5. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/Makefile.am
  6. +3
    -2
      check_mysql_health/check_mysql_health-2.2.2/Makefile.in
  7. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/NEWS
  8. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/README
  9. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/TODO
  10. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/acinclude.m4
  11. +3
    -3
      check_mysql_health/check_mysql_health-2.2.2/aclocal.m4
  12. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/config.guess
  13. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/config.sub
  14. +10
    -10
      check_mysql_health/check_mysql_health-2.2.2/configure
  15. +1
    -1
      check_mysql_health/check_mysql_health-2.2.2/configure.ac
  16. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/contrib/CheckMySQLHealthExt1.pm
  17. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/contrib/README.my-extensions
  18. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/contrib/check_mysql_health.php
  19. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/install-sh
  20. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/missing
  21. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Makefile.am
  22. +1
    -1
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Makefile.in
  23. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm
  24. +24
    -3
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Server.pm
  25. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm
  26. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm
  27. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm
  28. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm
  29. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/Extraopts.pm
  30. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/check_mysql_health.pl
  31. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/subst.in
  32. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/t/Makefile.am
  33. +1
    -1
      check_mysql_health/check_mysql_health-2.2.2/t/Makefile.in
  34. +0
    -0
      check_mysql_health/check_mysql_health-2.2.2/t/check_mysql_health.t
  35. +1
    -1
      check_mysql_health/control
  36. +1
    -1
      check_mysql_health/src

check_mysql_health/check_mysql_health-2.2.1/AUTHORS → check_mysql_health/check_mysql_health-2.2.2/AUTHORS View File


check_mysql_health/check_mysql_health-2.2.1/COPYING → check_mysql_health/check_mysql_health-2.2.2/COPYING View File


check_mysql_health/check_mysql_health-2.2.1/ChangeLog → check_mysql_health/check_mysql_health-2.2.2/ChangeLog View File

@@ -1,6 +1,8 @@
* 2.2.1 - 2015-08-18
* 2.2.2 2016-05-13
handle permission/syntax problems for mode sql
* 2.2.1 2015-08-18
fix the autoconf m4, so the debian-builds don't fail (thanks Jan Wagner)
* 2.2 - 2015-04-23
* 2.2 2015-04-23
add rfc3986-encoded passwords
* 2.1.9.2 2014-12-22
bugfix in InnoDB initialization & versions > 5.6.1 (Thanks Jorg Veit)

check_mysql_health/check_mysql_health-2.2.1/INSTALL → check_mysql_health/check_mysql_health-2.2.2/INSTALL View File


check_mysql_health/check_mysql_health-2.2.1/Makefile.am → check_mysql_health/check_mysql_health-2.2.2/Makefile.am View File


check_mysql_health/check_mysql_health-2.2.1/Makefile.in → check_mysql_health/check_mysql_health-2.2.2/Makefile.in View File

@@ -1,4 +1,4 @@
# Makefile.in generated by automake 1.14 from Makefile.am.
# Makefile.in generated by automake 1.14.1 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2013 Free Software Foundation, Inc.
@@ -571,9 +571,10 @@ distcheck: dist
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
&& am__cwd=`pwd` \
&& $(am__cd) $(distdir)/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
&& ../configure \
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
$(DISTCHECK_CONFIGURE_FLAGS) \
--srcdir=.. --prefix="$$dc_install_base" \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \

check_mysql_health/check_mysql_health-2.2.1/NEWS → check_mysql_health/check_mysql_health-2.2.2/NEWS View File


check_mysql_health/check_mysql_health-2.2.1/README → check_mysql_health/check_mysql_health-2.2.2/README View File


check_mysql_health/check_mysql_health-2.2.1/TODO → check_mysql_health/check_mysql_health-2.2.2/TODO View File


check_mysql_health/check_mysql_health-2.2.1/acinclude.m4 → check_mysql_health/check_mysql_health-2.2.2/acinclude.m4 View File


check_mysql_health/check_mysql_health-2.2.1/aclocal.m4 → check_mysql_health/check_mysql_health-2.2.2/aclocal.m4 View File

@@ -1,4 +1,4 @@
# generated automatically by aclocal 1.14 -*- Autoconf -*-
# generated automatically by aclocal 1.14.1 -*- Autoconf -*-

# Copyright (C) 1996-2013 Free Software Foundation, Inc.

@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
[am__api_version='1.14'
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
dnl require some minimum version. Point them to the right macro.
m4_if([$1], [1.14], [],
m4_if([$1], [1.14.1], [],
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
])

@@ -51,7 +51,7 @@ m4_define([_AM_AUTOCONF_VERSION], [])
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
[AM_AUTOMAKE_VERSION([1.14])dnl
[AM_AUTOMAKE_VERSION([1.14.1])dnl
m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])

check_mysql_health/check_mysql_health-2.2.1/config.guess → check_mysql_health/check_mysql_health-2.2.2/config.guess View File


check_mysql_health/check_mysql_health-2.2.1/config.sub → check_mysql_health/check_mysql_health-2.2.2/config.sub View File


check_mysql_health/check_mysql_health-2.2.1/configure → check_mysql_health/check_mysql_health-2.2.2/configure View File

@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for check_mysql_health 2.2.1.
# Generated by GNU Autoconf 2.69 for check_mysql_health 2.2.2.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -576,8 +576,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='check_mysql_health'
PACKAGE_TARNAME='check_mysql_health'
PACKAGE_VERSION='2.2.1'
PACKAGE_STRING='check_mysql_health 2.2.1'
PACKAGE_VERSION='2.2.2'
PACKAGE_STRING='check_mysql_health 2.2.2'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

@@ -1232,7 +1232,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures check_mysql_health 2.2.1 to adapt to many kinds of systems.
\`configure' configures check_mysql_health 2.2.2 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

@@ -1303,7 +1303,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of check_mysql_health 2.2.1:";;
short | recursive ) echo "Configuration of check_mysql_health 2.2.2:";;
esac
cat <<\_ACEOF

@@ -1390,7 +1390,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
check_mysql_health configure 2.2.1
check_mysql_health configure 2.2.2
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1407,7 +1407,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by check_mysql_health $as_me 2.2.1, which was
It was created by check_mysql_health $as_me 2.2.2, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ $0 $@
@@ -2270,7 +2270,7 @@ fi

# Define the identity of the package.
PACKAGE='check_mysql_health'
VERSION='2.2.1'
VERSION='2.2.2'


cat >>confdefs.h <<_ACEOF
@@ -3551,7 +3551,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by check_mysql_health $as_me 2.2.1, which was
This file was extended by check_mysql_health $as_me 2.2.2, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
@@ -3604,7 +3604,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
check_mysql_health config.status 2.2.1
check_mysql_health config.status 2.2.2
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"


check_mysql_health/check_mysql_health-2.2.1/configure.ac → check_mysql_health/check_mysql_health-2.2.2/configure.ac View File

@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT(check_mysql_health,2.2.1)
AC_INIT(check_mysql_health,2.2.2)
AM_INIT_AUTOMAKE([1.9 tar-pax])
AM_MAINTAINER_MODE([disable])
AC_CANONICAL_HOST

check_mysql_health/check_mysql_health-2.2.1/contrib/CheckMySQLHealthExt1.pm → check_mysql_health/check_mysql_health-2.2.2/contrib/CheckMySQLHealthExt1.pm View File


check_mysql_health/check_mysql_health-2.2.1/contrib/README.my-extensions → check_mysql_health/check_mysql_health-2.2.2/contrib/README.my-extensions View File


check_mysql_health/check_mysql_health-2.2.1/contrib/check_mysql_health.php → check_mysql_health/check_mysql_health-2.2.2/contrib/check_mysql_health.php View File


check_mysql_health/check_mysql_health-2.2.1/install-sh → check_mysql_health/check_mysql_health-2.2.2/install-sh View File


check_mysql_health/check_mysql_health-2.2.1/missing → check_mysql_health/check_mysql_health-2.2.2/missing View File


check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Makefile.am → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Makefile.am View File


check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Makefile.in → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Makefile.in View File

@@ -1,4 +1,4 @@
# Makefile.in generated by automake 1.14 from Makefile.am.
# Makefile.in generated by automake 1.14.1 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2013 Free Software Foundation, Inc.

check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Cluster.pm View File


check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server.pm → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Server.pm View File

@@ -101,11 +101,19 @@ sub init {
# sql output must be a number (or array of numbers)
@{$self->{genericsql}} =
$self->{handle}->fetchrow_array($params{selectname});
if (! (defined $self->{genericsql} &&
(scalar(grep { /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/ } @{$self->{genericsql}})) ==
if ($self->{handle}->{errstr}) {
$self->add_nagios_unknown(sprintf "got no valid response for %s: %s",
$params{selectname}, $self->{handle}->{errstr});
} elsif (! (defined $self->{genericsql} &&
(scalar(grep {
/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/
} @{$self->{genericsql}})) ==
scalar(@{$self->{genericsql}}))) {
$self->add_nagios_unknown(sprintf "got no valid response for %s",
$params{selectname});
} elsif (! defined $self->{genericsql}) {
$self->add_nagios_unknown(sprintf "got no valid response for %s",
$params{selectname});
} else {
# name2 in array
# units in array
@@ -1000,7 +1008,7 @@ sub init {
$self->{dsn},
$self->{username},
$self->decode_password($self->{password}),
{ RaiseError => 0, AutoCommit => 0, PrintError => 0 })) {
{ RaiseError => 0, AutoCommit => 0, PrintError => 1 })) {
# $self->{handle}->do(q{
# ALTER SESSION SET NLS_NUMERIC_CHARACTERS=".," });
$retval = $self;
@@ -1058,6 +1066,10 @@ sub fetchrow_array {
my @arguments = @_;
my $sth = undef;
my @row = ();
my $stderrvar;
*SAVEERR = *STDERR;
open ERR ,'>',\$stderrvar;
*STDERR = *ERR;
eval {
$self->trace(sprintf "SQL:\n%s\nARGS:\n%s\n",
$sql, Data::Dumper::Dumper(\@arguments));
@@ -1071,8 +1083,17 @@ sub fetchrow_array {
$self->trace(sprintf "RESULT:\n%s\n",
Data::Dumper::Dumper(\@row));
};
*STDERR = *SAVEERR;
if ($@) {
$self->debug(sprintf "bumm %s", $@);
$self->{errstr} = $@;
return (undef);
} elsif ($stderrvar) {
$self->{errstr} = $stderrvar;
return (undef);
} elsif ($sth->errstr()) {
$self->{errstr} = $sth->errstr();
return (undef);
}
if (-f "/tmp/check_mysql_health_simulation/".$self->{mode}) {
my $simulation = do { local (@ARGV, $/) =

check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance.pm View File


check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Innodb.pm View File


check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Myisam.pm View File


check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/DBD/MySQL/Server/Instance/Replication.pm View File


check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/Nagios/Extraopts.pm → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/Nagios/Extraopts.pm View File


check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/check_mysql_health.pl → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/check_mysql_health.pl View File


check_mysql_health/check_mysql_health-2.2.1/plugins-scripts/subst.in → check_mysql_health/check_mysql_health-2.2.2/plugins-scripts/subst.in View File


check_mysql_health/check_mysql_health-2.2.1/t/Makefile.am → check_mysql_health/check_mysql_health-2.2.2/t/Makefile.am View File


check_mysql_health/check_mysql_health-2.2.1/t/Makefile.in → check_mysql_health/check_mysql_health-2.2.2/t/Makefile.in View File

@@ -1,4 +1,4 @@
# Makefile.in generated by automake 1.14 from Makefile.am.
# Makefile.in generated by automake 1.14.1 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2013 Free Software Foundation, Inc.

check_mysql_health/check_mysql_health-2.2.1/t/check_mysql_health.t → check_mysql_health/check_mysql_health-2.2.2/t/check_mysql_health.t View File


+ 1
- 1
check_mysql_health/control View File

@@ -5,4 +5,4 @@ Recommends: libdbd-mysql-perl
Description: plugin to check various parameters of a
MySQL database
Build-Depends: autotools-dev
Version: 2.2.1
Version: 2.2.2

+ 1
- 1
check_mysql_health/src View File

@@ -1 +1 @@
check_mysql_health-2.2.1
check_mysql_health-2.2.2

Loading…
Cancel
Save