Module: check_mk
Branch: master
Commit: d6b3afe7f43f398429852222fc0bffc5c6924b5d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d6b3afe7f43f39…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Mar 5 18:03:37 2013 +0100
FIX: mysql.connections: avoid crash on legacy agent output
---
ChangeLog | 1 +
checks/mysql | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index baa3ef5..e23dfbf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -87,6 +87,7 @@
* FIX: mssql: Agent plugin now supports MSSQL Server 2012
* FIX: hr_mem: fix max value in performance data (thanks to Michaël COQUARD)
* FIX: f5_bigip_psu: fix inventory function (returned list instead of tuple)
+ * FIX: mysql.connections: avoid crash on legacy agent output
* Linux agent: limit netstat to 10 seconds
* ps: Allow %1, %2, .. instead of %s in process_inventory. That allows
reordering of matched groups
diff --git a/checks/mysql b/checks/mysql
index a908d16..99ad45f 100644
--- a/checks/mysql
+++ b/checks/mysql
@@ -166,7 +166,7 @@ check_info['mysql.innodb_io'] = {
def inventory_mysql_connections(info):
values = parse_mysql(info)
- if 'Max_used_connections' in values:
+ if 'Max_used_connections' in values and 'max_connections' in values:
return [(None, {})]
def check_mysql_connections(item, params, info):