[nagiosplug] check_mysql: Connections should have been defined ...

"Nagios Plugin Development" <[email protected]> Sun, 18 Aug 2013 16:50:19 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
    Module: nagiosplug
    Branch: master
    Commit: b2568b85affc77658d71f2165e834d0a99705199
    Author: Tim Laszlo <[email protected]>
 Committer: Holger Weiss <[email protected]>
      Date: Tue Nov 20 13:13:16 2012 -0600
       URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=b2568b8

check_mysql: Connections should have been defined as a counter

---

 plugins/check_mysql.c |    6 +++---
 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;
 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",


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk