blob: 76f3490cdc81427424c1c9593cfa188fff62e050 (
plain)
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
|
Summary: A Nagios plugin to check HP blade enclosures
Name: check_hp_bladechassis
Version: 1.0.1
Release: 1%{?dist}
License: GPL
Packager: Trond Hasle Amundsen <mail_redacted_for_web>
Group: Applications/System
BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: http://folk.uio.no/trondham/software/%{name}.html
Source0: http://folk.uio.no/trondham/software/%{name}-%{version}.tar.gz
BuildRequires: perl
Requires: perl >= 5.6.0
Requires: perl(Net::SNMP)
Requires: perl(Getopt::Long)
%description
check_hp_bladechassis is a plugin for the Nagios monitoring
software which checks the hardware health of HP blade enclosures via
SNMP. The plugin is only tested with the c7000 enclosure.
%prep
%setup -q
%build
pod2man -s 8 -r "%{name} %{version}" -c "Nagios plugin" %{name}.pod %{name}.8
gzip %{name}.8
%install
mkdir -p %{buildroot}/%{_libdir}/nagios/plugins
mkdir -p %{buildroot}/%{_mandir}/man8
install -p -m 0755 %{name} %{buildroot}/%{_libdir}/nagios/plugins
install -m 0644 %{name}.8.gz %{buildroot}/%{_mandir}/man8
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%doc README COPYING CHANGES
%{_libdir}/nagios/plugins/%{name}
%attr(0755, root, root) %{_mandir}/man8/%{name}.8.gz
%changelog
* Fri Jan 22 2010 Trond H. Amundsen <mail_redacted_for_web> - 1.0.1-1
- Version 1.0.1
- Added buildrequires perl, fixed requires for perl modules
- New location of script and manpage
* Fri Aug 14 2009 Trond H. Amundsen <mail_redacted_for_web> - 1.0.0-1
- Initial release
|