File monitoring-plugins-arcconf-deprecation.patch of Package monitoring-plugins-arcconf

--- check-aacraid.py.orig	2015-02-11 12:01:22.450805319 +0100
+++ check-aacraid.py	2015-02-11 12:02:06.352282060 +0100
@@ -28,6 +28,7 @@
 
 
 import sys, os, re, string
+from subprocess import PIPE, Popen
 
 c_status_re = re.compile('^\s*Controller Status\s*:\s*(.*)$')
 l_status_re = re.compile('^\s*Status of logical device\s*:\s*(.*)$')
@@ -44,7 +45,8 @@
 check_status = 0
 result = ""
 
-for line in os.popen4("/usr/bin/sudo /usr/StorMan/arcconf GETCONFIG 1 LD")[1].readlines():
+
+for line in Popen(["/usr/bin/sudo","/usr/StorMan/arcconf" , "GETCONFIG","1","LD"], stdin=PIPE, stdout=PIPE, close_fds=True).stdout:
 	# Match the regexs
 	ldevice = l_device_re.match(line)
 	if ldevice:
@@ -57,7 +59,7 @@
 			check_status = 2
 		result += "Logical Device " + lnum + " " + lstatus.group(1) + ","
 
-for line in os.popen4("/usr/bin/sudo /usr/StorMan/arcconf GETCONFIG 1 AD")[1].readlines():
+for line in Popen(["/usr/bin/sudo","/usr/StorMan/arcconf" , "GETCONFIG","1","AD"], stdin=PIPE, stdout=PIPE, close_fds=True).stdout:
 	# Match the regexs
 	cstatus = c_status_re.match(line)
 	if cstatus: