[packages/nagios-plugin-check_mysql_health] Rel 2; try ssl first by default

arekm arekm at pld-linux.org
Mon Oct 27 22:04:25 CET 2025


commit e1bdbb910962f469af8a6f88f374f43dfee339c4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Oct 27 22:04:16 2025 +0100

    Rel 2; try ssl first by default

 nagios-plugin-check_mysql_health.spec |  4 +++-
 ssl.patch                             | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/nagios-plugin-check_mysql_health.spec b/nagios-plugin-check_mysql_health.spec
index 3d28754..a5451b7 100644
--- a/nagios-plugin-check_mysql_health.spec
+++ b/nagios-plugin-check_mysql_health.spec
@@ -3,13 +3,14 @@ Summary:	Nagios plugin: monitor various performance-related characteristics of a
 Summary(pl.UTF-8):	Wtyczka Nagiosa monitorująca parametry wydajnościowe bazy danych MySQL
 Name:		nagios-plugin-%{plugin}
 Version:	2.2.2
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Networking
 Source0:	https://github.com/lausser/check_mysql_health/archive/ad90395e08beb1e24c428a056d81bfb7c624c929.zip
 # Source0-md5:	0bf1997673ce15f05809e8afaf7edd01
 Source1:	%{plugin}.cfg
 Patch0:		nobackdoor.patch
+Patch1:		ssl.patch
 URL:		https://omd.consol.de/docs/plugins/check_mysql_health/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -36,6 +37,7 @@ danych MySQL związanych z wydajnością.
 %prep
 %setup -q -n %{plugin}-ad90395e08beb1e24c428a056d81bfb7c624c929
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__libtoolize}
diff --git a/ssl.patch b/ssl.patch
new file mode 100644
index 0000000..da02cad
--- /dev/null
+++ b/ssl.patch
@@ -0,0 +1,11 @@
+diff -ru check_mysql_health-ad90395e08beb1e24c428a056d81bfb7c624c929.org/plugins-scripts/Nagios/DBD/MySQL/Server.pm check_mysql_health-ad90395e08beb1e24c428a056d81bfb7c624c929/plugins-scripts/Nagios/DBD/MySQL/Server.pm
+--- check_mysql_health-ad90395e08beb1e24c428a056d81bfb7c624c929.org/plugins-scripts/Nagios/DBD/MySQL/Server.pm	2016-05-13 11:13:09.000000000 +0200
++++ check_mysql_health-ad90395e08beb1e24c428a056d81bfb7c624c929/plugins-scripts/Nagios/DBD/MySQL/Server.pm	2025-10-27 22:00:34.747637952 +0100
+@@ -975,6 +975,7 @@
+     }
+     $self->{dsn} = "DBI:mysql:";
+     $self->{dsn} .= sprintf "database=%s", $self->{database};
++    $self->{dsn} .= ";mysql_ssl=1;mysql_ssl_mode=PREFERRED";
+     if ($self->{mycnf}) {
+       $self->{dsn} .= sprintf ";mysql_read_default_file=%s", $self->{mycnf};
+       if ($self->{mycnfgroup}) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_mysql_health.git/commitdiff/e1bdbb910962f469af8a6f88f374f43dfee339c4



More information about the pld-cvs-commit mailing list