-
Notifications
You must be signed in to change notification settings - Fork 43
/
nagios-okplugin-check_hpacucli.spec
65 lines (51 loc) · 2.08 KB
/
nagios-okplugin-check_hpacucli.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
%define debug_package %{nil}
Summary: A Nagios plugin to check HP Array with hpacucli
Name: nagios-okplugin-check_hpacucli
Version: 2
Release: 1%{?dist}
License: GPLv2+
Group: Applications/System
URL: http://opensource.is/trac/wiki/check_hpacucli
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_hpacucli/releases/nagios-okplugin-check_hpacucli-%{version}.tar.gz
Requires: hpacucli
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Packager: Pall Sigurdsson <[email protected]>
%description
Checks HP Array with hpacucli
%prep
%setup -q
perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_hpacucli.cfg
perl -pi -e "s|/usr/lib64|%{_libdir}|g" sudoers.d/*
%build
%install
rm -rf %{buildroot}
install -D -p -m 0755 check_hpacucli.py %{buildroot}%{_libdir}/nagios/plugins/check_hpacucli.py
install -D -p -m 0755 nrpe.d/check_hpacucli.cfg %{buildroot}/etc/nrpe.d/check_hpacucli.cfg
install -D -p -m 0440 sudoers.d/check_hpacucli %{buildroot}/etc/sudoers.d/check_hpacucli
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README LICENSE
%{_libdir}/nagios/plugins/*
/etc/nrpe.d/check_hpacucli.cfg
/etc/sudoers.d/check_hpacucli
%changelog
* Thu Feb 20 2014 Pall Sigurdsson <[email protected]> 2-1
- check_hpacucli.py - fix typo in hpacucli command ([email protected])
- check_hpacucli.py: pep8 cleanup ([email protected])
- check_hpacucli - fix tab indentation ([email protected])
- check_hpacucli: ignore hpacucli output that starts with "Note:"
- sudoers.d added to install ([email protected])
- dummy commit ([email protected])
- dummy commit ([email protected])
- Add sudoers support to check_hpacucli ([email protected])
* Thu Aug 23 2012 Pall Sigurdsson <[email protected]> 1.2-2
- version number of scripts bumped ([email protected])
* Thu Aug 23 2012 Pall Sigurdsson <[email protected]> 1.2-1
- check_command is now sudo'ed ([email protected])
* Mon Mar 12 2012 Pall Sigurdsson <[email protected]> 0.0.3-1
- new package built with tito
* Mon Mar 1 2010 Pall Sigurdsson <[email protected]> 0.1-1
- Initial packaging