From f66838195ba01988a620f663a3baf4b055e20f73 Mon Sep 17 00:00:00 2001 From: HIROSE Masaaki Date: Tue, 6 Dec 2016 18:53:43 +0900 Subject: [PATCH] [mysql] Work `_get_slave_status` in case of performance_schema is disabled --- checks.d/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks.d/mysql.py b/checks.d/mysql.py index be94bfd8d1..f9c42c89b2 100644 --- a/checks.d/mysql.py +++ b/checks.d/mysql.py @@ -529,7 +529,7 @@ def _collect_metrics(self, host, db, tags, options, queries): if _is_affirmative(options.get('replication', False)): # Get replica stats results.update(self._get_replica_stats(db)) - results.update(self._get_slave_status(db)) + results.update(self._get_slave_status(db, performance_schema_enabled)) metrics.update(REPLICA_VARS) # get slave running form global status page