-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnagios-plugins-check_mcqs.spec
59 lines (45 loc) · 1.73 KB
/
nagios-plugins-check_mcqs.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Name: nagios-plugins-check_mcqs
Version: 1.1
Release: 1%{?dist}
Summary: A Nagios / Icinga plugin for checking HP MC/ServiceGuard quorum server states
Group: Applications/System
License: GPL
URL: https://github.com/stdevel/check_mcqs
Source0: nagios-plugins-check_mcqs-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRequires:
Requires: nagios-plugins-tcp
%description
This package contains a customized Nagios / Icinga plugin for checking HP MC/ServiceGuard quorum server states
Check out the GitHub page for further information: https://github.com/stdevel/check_mcqs
%prep
%setup -q
%build
#change /usr/lib64 to /usr/lib if we're on i686
%ifarch i686
sed -i -e "s/usr\/lib64/usr\/lib/" check_mcqs.cfg
%endif
%install
install -m 0755 -d %{buildroot}%{_libdir}/nagios/plugins/
install -m 0755 check_mcqs.sh %{buildroot}%{_libdir}/nagios/plugins/check_mcqs
%if 0%{?el7}
install -m 0755 -d %{buildroot}%{_sysconfdir}/nrpe.d/
install -m 0755 check_mcqs.cfg %{buildroot}%{_sysconfdir}/nrpe.d/check_mcqs.cfg
%else
install -m 0755 -d %{buildroot}%{_sysconfdir}/nagios/plugins.d/
install -m 0755 check_mcqs.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_mcqs.cfg
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%if 0%{?el7}
%config %{_sysconfdir}/nrpe.d/check_mcqs.cfg
%else
%config %{_sysconfdir}/nagios/plugins.d/check_mcqs.cfg
%endif
%{_libdir}/nagios/plugins/check_mcqs
%changelog
* Thu Jun 09 2015 Christian Stankowic <info@stankowic-development.net> - 1.1.1
- Fixed wrong return code
* Thu Mar 05 2015 Christian Stankowic <info@stankowic-development.net> - 1.0.1
- First release