Logoj0ke.net Open Build Service > Projects > internetx > nagios-plugins-lsi > Changes
Sign Up | Log In

Changes of Revision 2

[-] Changed nagios-plugins-lsi.changes
x
 
1
@@ -1,4 +1,14 @@
2
 -------------------------------------------------------------------
3
+Mon Jan  2 13:03:43 UTC 2023 - Carsten Schöne <carsten.schoene@internetx.com>
4
+
5
+- replace draft plugin check_percraid_sas with patched version check_lsi_raid 
6
+
7
+-------------------------------------------------------------------
8
+Mon Jan  2 12:00:53 UTC 2023 - Carsten Schöne <carsten.schoene@internetx.com>
9
+
10
+- add initial (draft) check_percraid_sas plugin which uses perccli instead of megacli
11
+
12
+-------------------------------------------------------------------
13
 Mon Mar 11 07:22:23 UTC 2019 - Local OBS User <cs@linux-administrator.com>
14
 
15
 - update check_megaraid_sas plugin
16
[-] Changed nagios-plugins-lsi.spec ^
76
 
1
@@ -1,6 +1,6 @@
2
 #!BuildIgnore:          post-build-checks
3
 Name:      nagios-plugins-lsi
4
-Version:   0.6
5
+Version:   1.1
6
 Release:   1
7
 License:   GPL
8
 Source0:   check_mpt
9
@@ -8,10 +8,16 @@
10
 Source1:   check_megaraid_sas
11
 Source2:   check_mpt2sas
12
 Source3:   check_sas2ircu
13
+Source4:   check_lsi_raid
14
 #Patch1:       check_megaraid_sas.diff
15
 Requires:  perl mpt-status >= 1.2.0
16
 Requires:  megacli
17
 Requires:  sas2ircu
18
+# ifarch x86_64 is always false when BuildArch: noarch is set
19
+# we work around this
20
+%if "%{_arch}" == "x86_64"
21
+Requires:  perccli
22
+%endif
23
 Group:     Applications/System
24
 Summary:   LSI Raid Plugin
25
 Provides:  check_mpt
26
@@ -19,12 +25,15 @@
27
 Provides:  check_megaraid
28
 Provides:  check_mpt2sas
29
 Provides:  check_sas2ircu
30
+Provides:  check_lsi_raid
31
 
32
 BuildRequires: perl
33
 BuildRequires: mpt-status >= 1.2.0
34
 BuildRequires: megacli
35
 BuildRequires: sas2ircu
36
-
37
+%ifarch x86_64
38
+BuildRequires: perccli
39
+%endif
40
 BuildRoot: %{_tmppath}/%{name}-%{version}-build
41
 BuildArch: noarch
42
 
43
@@ -38,6 +47,8 @@
44
 
45
 check_mpt2sas is a low level check for mpt2sas based devices using procfs and scsi generic.
46
 
47
+check_lsi_raid uses perccli to check raid status.
48
+
49
 %prep
50
 %setup -c -T
51
 cp %{S:0} $RPM_BUILD_DIR/%{name}-%{version}/
52
@@ -46,6 +57,7 @@
53
 ##patch1
54
 cp %{S:2} $RPM_BUILD_DIR/%{name}-%{version}/
55
 cp %{S:3} $RPM_BUILD_DIR/%{name}-%{version}/
56
+cp %{S:4} $RPM_BUILD_DIR/%{name}-%{version}/
57
 
58
 %build
59
 
60
@@ -55,6 +67,7 @@
61
 %__install -m 755 check_megaraid_sas   %{buildroot}/usr/lib/nagios/plugins/
62
 %__install -m 755 check_mpt2sas    %{buildroot}/usr/lib/nagios/plugins/
63
 %__install -m 755 check_sas2ircu %{buildroot}/usr/lib/nagios/plugins/
64
+%__install -m 755 check_lsi_raid %{buildroot}/usr/lib/nagios/plugins/
65
 
66
 %files
67
 %defattr(-,root,root,0755)
68
@@ -62,6 +75,7 @@
69
 /usr/lib/nagios/plugins/check_mpt2sas
70
 /usr/lib/nagios/plugins/check_megaraid_sas
71
 /usr/lib/nagios/plugins/check_sas2ircu
72
+/usr/lib/nagios/plugins/check_lsi_raid
73
 
74
 %changelog
75
 * Mon Apr 29 2013 Carsten Schoene <cs@linux-administrator.com> - 0.5-1
76
[+] Added check_lsi_raid ^
[+] Added check_percraid_sas ^