From 1e4e0308b503453e713d946f561dc61029726738 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 22 Mar 2016 13:39:24 +0200 Subject: [PATCH] v1.1 --- check_mysql-heartbeat.sh | 4 ++-- monitoring-plugin-check_mysql-heartbeat.spec | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/check_mysql-heartbeat.sh b/check_mysql-heartbeat.sh index 43a1ea2..e687031 100755 --- a/check_mysql-heartbeat.sh +++ b/check_mysql-heartbeat.sh @@ -6,7 +6,7 @@ # PROGRAM=${0##*/} -REVISION=$(echo '$Revision$' | sed -e 's/[^0-9.]//g') +VERSION=1.1 PROGPATH=${0%/*} . $PROGPATH/utils.sh @@ -61,7 +61,7 @@ while :; do exit 0 ;; -V|--version) - echo $PROGRAM $REVISION + echo "$PROGRAM $VERSION" exit 0 ;; --mk|--maatkit) diff --git a/monitoring-plugin-check_mysql-heartbeat.spec b/monitoring-plugin-check_mysql-heartbeat.spec index 4a886e7..f1d94ae 100644 --- a/monitoring-plugin-check_mysql-heartbeat.spec +++ b/monitoring-plugin-check_mysql-heartbeat.spec @@ -1,14 +1,14 @@ %define plugin check_mysql-heartbeat %define php_min_version 5.0.0 %include /usr/lib/rpm/macros.php -Summary: Nagios plugin to check MySQL heartbeat +Summary: Nagios/Icinga plugin to check MySQL heartbeat Name: monitoring-plugin-%{plugin} -Version: 1.0 -Release: 2 +Version: 1.1 +Release: 1 License: GPL v2 Group: Networking -Source0: check_mysql-heartbeat.sh -Source1: check_mysql-heartbeat.cfg +Source0: %{plugin}.sh +Source1: %{plugin}.cfg BuildRequires: rpm-php-pearprov >= 4.4.2-11 Requires: nagios-common Requires: nagios-plugins-libs @@ -19,7 +19,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define plugindir %{_prefix}/lib/nagios/plugins %description -Nagios plugin to check MySQL heartbeat with maatkit or +Nagios/Icinga plugin to check MySQL heartbeat with maatkit or percona-toolkit. %prep -- 2.43.0