forked from ovido/check_rhev3
-
Notifications
You must be signed in to change notification settings - Fork 10
/
nagios-plugins-rhv.spec
86 lines (60 loc) · 1.96 KB
/
nagios-plugins-rhv.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Name: nagios-plugins-rhv
Version: 2.0
Release: 1%{?dist}
Summary: RHV monitoring plugin for Nagios/Icinga
Group: Applications/System
License: GPLv2+
URL: https://github.com/rk-it-at/check_rhv
Source0: check_rhv-%{version}.tar.gz
BuildRoot: %{_tmppath}/check_rhv-%{version}-%{release}-root
BuildRequires: perl-Crypt-SSLeay
BuildRequires: perl-libwww-perl
BuildRequires: perl-XML-Simple
Requires: perl-Crypt-SSLeay
Requires: perl-libwww-perl
Requires: perl-XML-Simple
%description
This plugin for Icinga/Nagios is used to monitor a variety of
a RHV environement including datacenters, clusters, hosts,
vms, vm pools and storage domains.
%prep
%setup -q -n check_rhv-%{version}
%build
%configure --prefix=%{_libdir}/nagios/plugins \
--with-nagios-user=nagios \
--with-nagios-group=nagios \
--with-pnp-dir=%{_datadir}/nagios/html/pnp4nagios
make all
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL_OPTS=""
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0755,nagios,nagios)
%{_libdir}/nagios/plugins/check_rhv
%{_datadir}/nagios/html/pnp4nagios/templates/check_rhv.php
%doc README INSTALL NEWS ChangeLog COPYING
%changelog
* Fri Oct 19 2018 Rene Koch <rkoch@rk-it.at> 2.0-1
- Initial build of renamed package nagios-plugins-rhv
* Sun Nov 06 2016 Rene Koch <rkoch@rk-it.at> 1.6-1
- Initial build
* Fri Feb 19 2016 Rene Koch <rkoch@rk-it.at> 1.5-1
- Initial build
* Wed Apr 16 2014 Rene Koch <rkoch@linuxland.at> 1.4-1
- Initial build
* Thu Nov 07 2013 Rene Koch <r.koch@ovido.at> 1.3-1
- Initial build
* Tue Jul 23 2013 Rene Koch <r.koch@ovido.at> 1.2.1-1
- Initial build
* Thu May 16 2013 Rene Koch <r.koch@ovido.at> 1.2-1
- Initial build
* Wed Jan 30 2013 Rene Koch <r.koch@ovido.at> 1.1-1
- Initial build
* Thu Dec 27 2012 Rene Koch <r.koch@ovido.at> 1.0.1-1
- Initial build for bugfix release
* Fri Aug 31 2012 Rene Koch <r.koch@ovido.at> 1.0-2
- Removed BuildArch: noarch
* Mon Aug 27 2012 Rene Koch <r.koch@ovido.at> 1.0-1
- Initial build.