summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.c
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-11-20 19:13:16 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-08-18 16:38:10 (GMT)
commitb2568b85affc77658d71f2165e834d0a99705199 (patch)
treedbe796ab71061dbe5c0fadce417c4e75845b7d5a /plugins/check_mysql.c
parent7bbd155a72eb439efd338f2e217b47332460a250 (diff)
downloadmonitoring-plugins-b2568b85affc77658d71f2165e834d0a99705199.tar.gz
check_mysql: Connections should have been defined as a counter
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r--plugins/check_mysql.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 8d1f99a..11d4a2f 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -62,9 +62,8 @@ int verbose = 0;
62static double warning_time = 0; 62static double warning_time = 0;
63static double critical_time = 0; 63static double critical_time = 0;
64 64
65#define LENGTH_METRIC_UNIT 7 65#define LENGTH_METRIC_UNIT 6
66static const char *metric_unit[LENGTH_METRIC_UNIT] = { 66static const char *metric_unit[LENGTH_METRIC_UNIT] = {
67 "Connections",
68 "Open_files", 67 "Open_files",
69 "Open_tables", 68 "Open_tables",
70 "Qcache_free_memory", 69 "Qcache_free_memory",
@@ -73,8 +72,9 @@ static const char *metric_unit[LENGTH_METRIC_UNIT] = {
73 "Threads_running" 72 "Threads_running"
74}; 73};
75 74
76#define LENGTH_METRIC_COUNTER 8 75#define LENGTH_METRIC_COUNTER 9
77static const char *metric_counter[LENGTH_METRIC_COUNTER] = { 76static const char *metric_counter[LENGTH_METRIC_COUNTER] = {
77 "Connections",
78 "Qcache_hits", 78 "Qcache_hits",
79 "Qcache_inserts", 79 "Qcache_inserts",
80 "Qcache_lowmem_prunes", 80 "Qcache_lowmem_prunes",