1
0
monitoring-plugins-sar-perf/monitoring-plugins-sar-perf-stdout.patch

20 lines
577 B
Diff
Raw Normal View History

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)