[packages/nagios-plugin-check_mysql_health] Up to 2.2.2
arekm
arekm at pld-linux.org
Mon Oct 27 21:50:51 CET 2025
commit 5f0128b6be8dd6ab85d39509eefee60864fae93c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Oct 27 21:50:43 2025 +0100
Up to 2.2.2
nagios-plugin-check_mysql_health.spec | 12 +++++++-----
nobackdoor.patch | 33 +++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 5 deletions(-)
---
diff --git a/nagios-plugin-check_mysql_health.spec b/nagios-plugin-check_mysql_health.spec
index 562bc8c..3d28754 100644
--- a/nagios-plugin-check_mysql_health.spec
+++ b/nagios-plugin-check_mysql_health.spec
@@ -2,14 +2,15 @@
Summary: Nagios plugin: monitor various performance-related characteristics of a MySQL DB
Summary(pl.UTF-8): Wtyczka Nagiosa monitorująca parametry wydajnościowe bazy danych MySQL
Name: nagios-plugin-%{plugin}
-Version: 2.1.8.2
+Version: 2.2.2
Release: 1
License: GPL v2+
Group: Networking
-Source0: http://labs.consol.de/download/shinken-nagios-plugins/check_mysql_health-%{version}.tar.gz
-# Source0-md5: 7ae986ab7ecbb576dbb657e8ef0490f2
+Source0: https://github.com/lausser/check_mysql_health/archive/ad90395e08beb1e24c428a056d81bfb7c624c929.zip
+# Source0-md5: 0bf1997673ce15f05809e8afaf7edd01
Source1: %{plugin}.cfg
-URL: http://labs.consol.de/lang/en/nagios/check_mysql_health/
+Patch0: nobackdoor.patch
+URL: https://omd.consol.de/docs/plugins/check_mysql_health/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
@@ -33,7 +34,8 @@ Wtyczka Nagiosa pozwalająca na monitorowanie różnych parametrów bazy
danych MySQL związanych z wydajnością.
%prep
-%setup -q -n %{plugin}-%{version}
+%setup -q -n %{plugin}-ad90395e08beb1e24c428a056d81bfb7c624c929
+%patch -P0 -p1
%build
%{__libtoolize}
diff --git a/nobackdoor.patch b/nobackdoor.patch
new file mode 100644
index 0000000..0cb9d99
--- /dev/null
+++ b/nobackdoor.patch
@@ -0,0 +1,33 @@
+From 9f60aab7d08a61638cc586bafe007b97ea614f3f Mon Sep 17 00:00:00 2001
+From: Vincevrp <vince at vince.sh>
+Date: Mon, 27 Feb 2023 11:48:25 +0100
+Subject: [PATCH] Remove shell backdoor parameter
+
+---
+ plugins-scripts/check_mysql_health.pl | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/plugins-scripts/check_mysql_health.pl b/plugins-scripts/check_mysql_health.pl
+index 613dc19..e4cbbf1 100755
+--- a/plugins-scripts/check_mysql_health.pl
++++ b/plugins-scripts/check_mysql_health.pl
+@@ -314,7 +314,6 @@ ($$)
+ "method=s",
+ "runas|r=s",
+ "scream",
+- "shell",
+ "eyecandy",
+ "encode",
+ "units=s",
+@@ -475,11 +474,6 @@ ($$)
+ exit;
+ }
+
+-if (exists $commandline{shell}) {
+- # forget what you see here.
+- system("/bin/sh");
+-}
+-
+ if (! exists $commandline{statefilesdir}) {
+ if (exists $ENV{OMD_ROOT}) {
+ $commandline{statefilesdir} = $ENV{OMD_ROOT}."/var/tmp/check_mysql_health";
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_mysql_health.git/commitdiff/5f0128b6be8dd6ab85d39509eefee60864fae93c
More information about the pld-cvs-commit
mailing list