forked from PickinA/nagios2influx
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnaemon2influx.tmpl
47 lines (37 loc) · 1.37 KB
/
naemon2influx.tmpl
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
Name: __NAME__
Version: __VERSION__
Release: __RELEASE__.el7
Summary: naemon2influx plugin
Group: Application Environment/Base
Packager: Private
License: GPL
%define __spec_install_pre /bin/true
%description
naemon2influx
%changelog
* Mon Aug 14 2017 v1.0.3
Fixed inefficient method of dumping perfdata
* Mon Jun 26 2017 v1.0.2
removed checkcommand from perfformat
* Thu Jun 1 2017 v1.0.1
fixed help option
%prep
mkdir -p %{buildroot}%{_sysconfdir}/naemon %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1 %{buildroot}%{_mandir}/man5
%build
%clean
rm -rf %{buildroot}
%post
%install
pod2man naemon2influx | gzip > naemon2influx.1.gz
pod2man naemon2influx.cfg.pod | gzip > naemon2influx.cfg.5.gz
install -m 0755 naemon-perf %{buildroot}%{_bindir}
install -m 0755 naemon2influx %{buildroot}%{_bindir}
install -m 0660 naemon2influx.cfg %{buildroot}%{_sysconfdir}/naemon/
install -m 0644 naemon2influx.1.gz %{buildroot}%{_mandir}/man1
install -m 0644 naemon2influx.cfg.5.gz %{buildroot}%{_mandir}/man5
%files
%config(missingok noreplace) %verify(not size md5) %attr(0660,naemon,naemon) %{_sysconfdir}/naemon/naemon2influx.cfg
%config(noreplace) %verify(not size md5) %attr(0755,root,root) %{_bindir}/naemon-perf
%attr(0755,root,root) %{_bindir}/naemon2influx
%attr(0644,root,root) %{_mandir}/man1/naemon2influx.1.gz
%attr(0644,root,root) %{_mandir}/man5/naemon2influx.cfg.5.gz