417003304a
write are at 0 and util is at 100 percent OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-sar-perf?expand=0&rev=40
20 lines
577 B
Diff
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)
|