84ad4ad9cb
- check_iostat: use 5 seconds instead of 2 to get more useful data - check_iostat: add warning and critical levels for iowait - check_iostat: actually check current io stats, not since boot - more additions to check_iostat: can use device-mapper name - rewrite check_iostat in perl, also output iowait value - add requires sysstat - check_iostat: call iostat with "-k" to really display kb instead of blocks as unit - added check_iostat - also print the used arguments as output to STDOUT, so the user knows what is mesured (monitoring-plugins-sar-perf-stdout.patch) - added monitoring-plugins-sar-perf-output.patch : do not print DEV name for disk in performance output - initial version (git commit 4878d0cc66e928bd1075) defined as 0.1 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-sar-perf?expand=0&rev=2
15 lines
675 B
Diff
15 lines
675 B
Diff
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)
|