forked from rk-it-at/check_rhv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnagios-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
- Initial build of renamed package nagios-plugins-rhv
- Initial build
- Initial build
- Initial build
- Initial build
- Initial build
- Initial build
- Initial build
- Initial build for bugfix release
- Removed BuildArch: noarch
- Initial build.