diff --git a/bin/linspector b/bin/linspector index 324fa94..84c8784 100755 --- a/bin/linspector +++ b/bin/linspector @@ -20,7 +20,7 @@ from linspector.environment import Environment from linspector.linspector import Linspector from linspector.monitors import Monitors -__version__ = '0.28.3' +__version__ = '0.28.4' __author__ = 'Johannes Findeisen ' sys.stderr = open('/dev/null', 'w') @@ -50,9 +50,9 @@ def parse_args(): def linspector(): - print('Starting Linspector...') - print('This software is free software licensed under the terms of the MIT license. (c) 2013-2023 by ' - 'Johannes Findeisen ') + print('Starting Linspector ' + __version__ + '...') + print('This software is free software licensed under the terms of the MIT license. Copyright (c) 2013-2023 by ' + + __author__) args = parse_args() monitors = {} diff --git a/linspector/tasks/mysql.py b/linspector/tasks/mysql.py index 338c98e..47c86b2 100644 --- a/linspector/tasks/mysql.py +++ b/linspector/tasks/mysql.py @@ -23,7 +23,7 @@ class MySQLTask(Task): try: self._database = None if self._configuration.get_option('tasks', 'mysql_database'): - self._database = self._configuration.get_option('databases', 'mysql_database') + self._database = self._configuration.get_option('tasks', 'mysql_database') self._host = None if self._configuration.get_option('tasks', 'mysql_host'):