File monitoring-plugins-sar-perf-output.patch of Package monitoring-plugins-sar-perf

Index: check_sar_perf.py
===================================================================
--- check_sar_perf.py.orig
+++ check_sar_perf.py
@@ -99,7 +99,8 @@ class SarNRPE:
         # Create dictionary
         for i in range(len(columns)):
             # Remove first column if data contains only letters
-            if i != 0 or not search.match(data[i]):
+            #if i != 0 or not search.match(data[i]):
+             if (i != 0 or not search.match(data[i])) and (columns[i] != "DEV"):
                 # Remove characters that cause issues (%/)
                 badchars=['%','/']
                 columns[i] = ''.join(j for j in columns[i] if j not in badchars)
openSUSE Build Service is sponsored by