check_mysql: Connections should have been defined as a counter

This commit is contained in:
Tim Laszlo 2012-11-20 13:13:16 -06:00 committed by Holger Weiss
parent 7bbd155a72
commit b2568b85af

View file

@ -62,9 +62,8 @@ int verbose = 0;
static double warning_time = 0;
static double critical_time = 0;
#define LENGTH_METRIC_UNIT 7
#define LENGTH_METRIC_UNIT 6
static const char *metric_unit[LENGTH_METRIC_UNIT] = {
"Connections",
"Open_files",
"Open_tables",
"Qcache_free_memory",
@ -73,8 +72,9 @@ static const char *metric_unit[LENGTH_METRIC_UNIT] = {
"Threads_running"
};
#define LENGTH_METRIC_COUNTER 8
#define LENGTH_METRIC_COUNTER 9
static const char *metric_counter[LENGTH_METRIC_COUNTER] = {
"Connections",
"Qcache_hits",
"Qcache_inserts",
"Qcache_lowmem_prunes",