1
0
monitoring-plugins-sar-perf/monitoring-plugins-sar-perf-stdout.patch
Lars Vogdt 84ad4ad9cb - Renamed package to monitoring-plugins-sar-perf
- 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
2014-07-30 21:35:13 +00:00

20 lines
577 B
Diff

Index: check_sar_perf.py
===================================================================
--- check_sar_perf.py.orig
+++ check_sar_perf.py
@@ -153,11 +153,12 @@ def Main(args):
else:
sar = SarNRPE(myOpts[args[1]])
else:
- print 'ERROR: option not defined'
+ print 'ERROR: option ',args[1],' not defined'
sys.exit(ERR_UNKN)
# Output in NRPE format
- print 'sar OK|', ' '.join(sar.stats)
+ args[0]=''
+ print 'sar OK: ',' '.join(args),'|', ' '.join(sar.stats)
if __name__ == '__main__':
Main(sys.argv)