-
Notifications
You must be signed in to change notification settings - Fork 18
/
zabbix-module-systemd.spec
56 lines (43 loc) · 1.58 KB
/
zabbix-module-systemd.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
Name : zabbix-module-systemd
Vendor : cavaliercoder
Version : 1.2.0
Release : 1
Summary : systemd monitoring module for Zabbix
Group : Applications/Internet
License : GNU GPLv2
URL : https://github.com/cavaliercoder/libzbxsystemd
Source0 : %{name}-%{version}.tar.gz
Buildroot : %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires : zabbix-agent >= 3.2.0
BuildRequires : selinux-policy-devel
%define module libzbxsystemd
%description
zabbix-module-systemd is a loadable Zabbix module that enables Zabbix to query
the systemd D-Bus API for native and granular service monitoring.
%prep
%setup0 -q -n %{name}-%{version}
# fix up some lib64 issues
sed -i.orig -e 's|_LIBDIR=/usr/lib|_LIBDIR=%{_libdir}|g' configure
%build
%configure --enable-dependency-tracking
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{_libdir}/zabbix/modules/%{module}.so
%{_sysconfdir}/zabbix/zabbix_agentd.d/%{module}.conf
%{_datarootdir}/selinux/packages/%{name}/%{module}.pp
%{_docdir}/%{name}-%{version}/README.md
%{_docdir}/%{name}-%{version}/COPYING
%changelog
* Thu Apr 27 2017 Ryan Armstrong <[email protected]> 1.2.0-1
- Added type parameter to systemd.unit.discovery
* Tue Apr 25 2017 Ryan Armstrong <[email protected]> 1.1.0-1
- Added systemd.service.discovery key
- Fixed cross-thread connection handling
- Fixed SELinux permissions for init_t:service status
* Wed Apr 19 2017 Ryan Armstrong <[email protected]> 1.0.0-1
- Initial release