forked from pool/monitoring-plugins-sar-perf
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)
|