MonitorHandler implemented as a replacement for the OOBHandler monitor functionality, as per #924.

This commit is contained in:
Griatch 2016-03-05 19:51:09 +01:00
parent 198a348d73
commit 8090d92d85
5 changed files with 506 additions and 408 deletions

View file

@ -50,18 +50,3 @@ class ServerConfigManager(models.Manager):
return default
return conf[0].value
def get_mysql_db_version(self):
"""
This is a helper method for specifically getting the version
string of a MySQL database.
Returns:
mysql_version (str): The currently used mysql database
version.
"""
from django.db import connection
conn = connection.cursor()
conn.execute("SELECT VERSION()")
version = conn.fetchone()
return version and str(version[0]) or ""