git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/nagios-plugins-contrib-24.20190301~bpo9+1/debian/patches/check_raid/prefer_cciss_vol_status_over_hpacucli
blob: c8def569a39a23c968b367d3182044d0c66c9cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/check_raid/check_raid
+++ b/check_raid/check_raid
@@ -3975,8 +3975,10 @@ sub check {
 package hpacucli;
 use base 'plugin';
 
-# register
-push(@utils::plugins, __PACKAGE__);
+# register if cciss_vol_status is not available
+if (! utils::which('cciss_vol_status')) {
+	push(@utils::plugins, __PACKAGE__);
+}
 
 sub program_names {
 	__PACKAGE__;