From 22e1ca42482fc09ec4a67e6b2ce112e40b134cfd Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Fri, 29 Dec 2006 13:20:52 +0000
Subject: [PATCH] Don't report all disks when they are OK.

---
 check_iostatE | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_iostatE b/check_iostatE
index ead8588..a138db7 100755
--- a/check_iostatE
+++ b/check_iostatE
@@ -128,7 +128,7 @@ exec $CMD | $GAWK -vverbose=$VERBOSE \
     		} else if (nwarn > 0) { \
     			print "WARNING -", ncrit+nwarn "/" ndisks, "disks with errors (" nsoft, "soft", nhard, "hard", ntran, "transport):" crits warns; exit 1 \
     		} else { \
-    			print "OK -", ndisks, "disks checked with", gtotal, "errors (" nsoft, "soft", nhard, "hard", ntran, "transport):" disks}} \
+    			print "OK -", ndisks, "disks checked with", gtotal, "errors (" nsoft, "soft", nhard, "hard", ntran, "transport)" }} \
 	'
 
 
-- 
GitLab