- Conversion to _service pulled source from upstream - Add no-python2.patch to make script python3 compatible OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-sar-perf?expand=0&rev=42
22 lines
571 B
Diff
22 lines
571 B
Diff
---
|
|
check_sar_perf.py | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
--- a/check_sar_perf.py
|
|
+++ b/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)
|