-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheck_jbod-el8.spec
67 lines (55 loc) · 2.21 KB
/
check_jbod-el8.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
Name: check_jbod
Version: 0.0.10
%global gittag 0.0.10
Release: 1%{?dist}
Summary: Nagios script to check the status and fault in Xyratex JBOD.
License: Apache License 2.0
URL: https://github.com/guilbaults/%{name}
Source0: https://github.com/guilbaults/%{name}/archive/v%{gittag}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python36-devel
Requires: python36
Requires: sg3_utils
%description
This tool is used to monitor Xyratex JBOD, also known as:
* Seagate/Xyratex SP-2584
* Seagate/Xyratex SP-3584
* Seagate Exos E 4U106
* Dell MD1420
* Lenovo D1212
* Lenovo D3284
These JBODs are probably also supported with some slight modifications:
* Dell MD1280
%prep
%autosetup -n %{name}-%{gittag}
%setup -q
%build
%install
mkdir -p %{buildroot}/usr/lib64/nagios/plugins/
sed -i -e '1i#!/usr/bin/env python3.6' %{name}.py
install -m 0755 %{name}.py %{buildroot}/usr/lib64/nagios/plugins/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
/usr/lib64/nagios/plugins/%{name}
%changelog
* Mon Feb 14 2022 Simon Guilbault <[email protected]> 0.0.10-1
- MD1420 with 24x 3.84TB SSDs can take a bit more power than the previous threshold
* Mon Feb 14 2022 Simon Guilbault <[email protected]> 0.0.9-1
- Handling newer SP-34106-CFFE12P on RockyLinux
* Mon Feb 14 2022 Simon Guilbault <[email protected]> 0.0.8-1
- Handling newer MD1420
* Fri Oct 2 2020 Simon Guilbault <[email protected]> 0.0.7-1
- Add support for Lenovo D1212
* Thu Mar 26 2020 Simon Guilbault <[email protected]> 0.0.6-1
- Ignoring another PSU status flag
* Wed Mar 25 2020 Simon Guilbault <[email protected]> 0.0.5-1
- Increasing fan maximum speed threshold
* Thu Mar 19 2020 Simon Guilbault <[email protected]> 0.0.4-1
- Adjusting threshold for non-idle JBODs
* Thu Mar 19 2020 Simon Guilbault <[email protected]> 0.0.3-1
- Adding other models of JBODs
* Fri Jul 13 2018 Simon Guilbault <[email protected]> 0.0.2-1
- Fixing the shebang and the requirements
* Fri Jul 13 2018 Simon Guilbault <[email protected]> 0.0.1-1
- Initial release, supporting Xyratex 84 slots JBOD