1 |
Summary: Nagios plugin check_mysql_smeserver |
2 |
%define name smeserver-nagios-plugins-mysql |
3 |
Name: %{name} |
4 |
%define version 1.0.2 |
5 |
%define release 0 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
Group: Applications/System |
10 |
URL: http://www.my-plugin.de/wiki/doku.php |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
BuildRoot: /var/tmp/%{name}-buildroot/ |
13 |
BuildArch: noarch |
14 |
Requires: smeserver-release >= 7.1.3 |
15 |
Requires: perl-Nagios-Plugin |
16 |
AutoReq: no |
17 |
|
18 |
%changelog |
19 |
* Sat Nov 24 2007 Michael Weinberger <mweinber@neddix.de> |
20 |
Version 1.0.2 |
21 |
added Response Time |
22 |
replaced mysqladmin status call by a 'show status' query |
23 |
* Sat Nov 17 2007 Michael Weinberger <mweinber@neddix.de> |
24 |
requires perl-Nagios-Plugin |
25 |
* Thu Nov 9 2007 Michael Weinberger <mweinber@neddix.de> |
26 |
- Initial release |
27 |
|
28 |
%description |
29 |
This plugin checks the mysqld service on smeserver |
30 |
|
31 |
%prep |
32 |
%setup -q -n %{name}-%{version} |
33 |
|
34 |
%build |
35 |
|
36 |
%install |
37 |
rm -rf $RPM_BUILD_ROOT |
38 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
39 |
rm -f %{name}-%{version}-filelist |
40 |
find $RPM_BUILD_ROOT -depth -type f -print |\ |
41 |
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
42 |
-e "s@^/usr/lib/nagios/plugins/@%attr(0550,nagios,root) &@"\ |
43 |
>> %{name}-%{version}-filelist |
44 |
find $RPM_BUILD_ROOT -depth -type l -print |\ |
45 |
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
46 |
|
47 |
%clean |
48 |
rm -rf $RPM_BUILD_ROOT |
49 |
|
50 |
%files -f %{name}-%{version}-filelist |
51 |
%defattr(-,root,root) |