File check_multipath.patch of Package monitoring-plugins-multipath

--- check_multipath.orig	2012-10-04 13:19:48.000000000 +0200
+++ check_multipath	2018-10-03 15:21:18.979721456 +0200
@@ -111,16 +111,16 @@
 	echo "MULTIPATH: $(MULTIPATH -l 2>&1)"
 	exit $STATE_UNKNOWN
 fi
-
+PATHCOUNT=0
 PATHCOUNT=$(echo "$OUTPUT" | wc -l)
 if [ $PATHCOUNT -eq 0 ]; then
 	echo "MULTIPATH: WARNING - No paths defined"
 	exit $STATEWARNING
 fi
-
+FAILCOUNT=0
 FAILCOUNT=$(echo "$OUTPUT" | grep -c failed)
 if [ $FAILCOUNT -gt 0 ]; then
-	echo "MULTIPATH: CRITICAL - $FAILCOUNT paths failed"
+	echo "MULTIPATH: CRITICAL - $FAILCOUNT paths failed | total_paths=${PATHCOUNT}; failed_paths=${FAILCOUNT};"
 	exit $STATE_CRITICAL
 fi
 
@@ -154,7 +154,7 @@
 	fi
 fi
 
-echo "MULTIPATH: OK - No failed paths"
+echo "MULTIPATH: OK - No failed paths | total_paths=${PATHCOUNT}; failed_paths=${FAILCOUNT};"
 exit $STATE_OK
 
 # vim: ts=4:sw=4:noet
openSUSE Build Service is sponsored by