Explorar o código

Revert "Merge pull request #238 from apollotonkosmo/mysql-uptime-perfdata"

This reverts commit 28a1998ffd95aed15d8b65723eeff3c4abc510a0, reversing
changes made to 155599c532cc19940b9263bf0b1033ba8d215758.
John C. Frickson %!s(int64=8) %!d(string=hai) anos
pai
achega
f74d912e08
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      plugins/check_mysql.c

+ 5 - 5
plugins/check_mysql.c

@@ -66,18 +66,17 @@ int verbose = 0;
 static double warning_time = 0;
 static double warning_time = 0;
 static double critical_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] = {
 static const char *metric_unit[LENGTH_METRIC_UNIT] = {
-	"x",
+	"Open_files",
 	"Open_tables",
 	"Open_tables",
 	"Qcache_free_memory",
 	"Qcache_free_memory",
 	"Qcache_queries_in_cache",
 	"Qcache_queries_in_cache",
 	"Threads_connected",
 	"Threads_connected",
-	"Threads_running",
-	"Uptime"
+	"Threads_running"
 };
 };
 
 
-#define LENGTH_METRIC_COUNTER 8
+#define LENGTH_METRIC_COUNTER 9
 static const char *metric_counter[LENGTH_METRIC_COUNTER] = {
 static const char *metric_counter[LENGTH_METRIC_COUNTER] = {
 	"Connections",
 	"Connections",
 	"Qcache_hits",
 	"Qcache_hits",
@@ -87,6 +86,7 @@ static const char *metric_counter[LENGTH_METRIC_COUNTER] = {
 	"Queries",
 	"Queries",
 	"Questions",
 	"Questions",
 	"Table_locks_waited",
 	"Table_locks_waited",
+	"Uptime"
 };
 };
 
 
 thresholds *my_threshold = NULL;
 thresholds *my_threshold = NULL;