Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ioguix:check_pgactivity
percona-monitoring-plugins
ss_get_rds_stats-python3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ss_get_rds_stats-python3.patch of Package percona-monitoring-plugins
--- a/cacti/scripts/ss_get_rds_stats.py 2023-06-10 01:45:53.866322087 +0200 +++ b/cacti/scripts/ss_get_rds_stats.py 2023-06-10 01:51:14.412577750 +0200 @@ -51,7 +51,7 @@ def get_info(self): """Get RDS instance info""" if not self.info: - print 'No DB instance "%s" found on your AWS account or %s region(s).' % (options.ident, options.region) + print('No DB instance "%s" found on your AWS account or %s region(s).' % (options.ident, options.region)) sys.exit(1) return self.info[0] @@ -92,7 +92,7 @@ # This metric can be missed result = 0 else: - print 'Unable to get RDS statistics' + print('Unable to get RDS statistics') sys.exit(1) return float(result) @@ -102,7 +102,7 @@ """Debugging output""" global options if options.debug: - print 'DEBUG: %s' % val + print('DEBUG: %s' % val) def main(): @@ -197,7 +197,7 @@ sys.exit() elif options.db_list: info = rds.get_list() - print 'List of all DB instances in %s region(s):' % (options.region,) + print('List of all DB instances in %s region(s):' % (options.region,)) pprint.pprint(info) sys.exit() elif not options.ident: @@ -264,7 +264,7 @@ try: memory = db_classes[info.instance_class] * 1024 ** 3 except IndexError: - print 'Unknown DB instance class "%s"' % info.instance_class + print('Unknown DB instance class "%s"' % info.instance_class) sys.exit(1) results.append('%s:%.0f' % (output['used_memory'], memory - stats)) @@ -277,12 +277,12 @@ else: short_var = output.get(metrics[metric]) if not short_var: - print 'Chosen metric does not have a correspondent entry in perl magic vars' + print('Chosen metric does not have a correspondent entry in perl magic vars') sys.exit(1) results.append('%s:%s' % (short_var, stats)) - print ' '.join(results) + print(' '.join(results)) if __name__ == '__main__':
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor