summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql_query.c
diff options
context:
space:
mode:
authorJan Wagner <waja@cyconet.org>2014-01-21 10:08:07 (GMT)
committerJan Wagner <waja@cyconet.org>2014-01-21 10:08:07 (GMT)
commit96f45b6698809a73a38ae1b648782bc967f3bbe1 (patch)
tree323966e5ca958156fec89d451ccb48dab6a89574 /plugins/check_mysql_query.c
parentfc01a54e933aadec5059bf56e79fa7aca08af6d2 (diff)
downloadmonitoring-plugins-96f45b6698809a73a38ae1b648782bc967f3bbe1.tar.gz
Revert renaming value
As suggested by sreinhardt in 045d38a6 over there in nagios-plugins
Diffstat (limited to 'plugins/check_mysql_query.c')
-rw-r--r--plugins/check_mysql_query.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_mysql_query.c b/plugins/check_mysql_query.c
index 7361127..ff823cc 100644
--- a/plugins/check_mysql_query.c
+++ b/plugins/check_mysql_query.c
@@ -55,7 +55,7 @@ void print_usage (void);
55 55
56char *sql_query = NULL; 56char *sql_query = NULL;
57int verbose = 0; 57int verbose = 0;
58thresholds *thlds = NULL; 58thresholds *my_thresholds = NULL;
59 59
60 60
61int 61int
@@ -143,7 +143,7 @@ main (int argc, char **argv)
143 if (verbose >= 3) 143 if (verbose >= 3)
144 printf("mysql result: %f\n", value); 144 printf("mysql result: %f\n", value);
145 145
146 status = get_status(value, thlds); 146 status = get_status(value, my_thresholds);
147 147
148 if (status == STATE_OK) { 148 if (status == STATE_OK) {
149 printf("QUERY %s: ", _("OK")); 149 printf("QUERY %s: ", _("OK"));
@@ -154,8 +154,8 @@ main (int argc, char **argv)
154 } 154 }
155 printf(_("'%s' returned %f | %s"), sql_query, value, 155 printf(_("'%s' returned %f | %s"), sql_query, value,
156 fperfdata("result", value, "", 156 fperfdata("result", value, "",
157 thlds->warning?TRUE:FALSE, thlds->warning?thlds->warning->end:0, 157 my_thresholds->warning?TRUE:FALSE, my_thresholds->warning?my_thresholds->warning->end:0,
158 thlds->critical?TRUE:FALSE, thlds->critical?thlds->critical->end:0, 158 my_thresholds->critical?TRUE:FALSE, my_thresholds->critical?my_thresholds->critical->end:0,
159 FALSE, 0, 159 FALSE, 0,
160 FALSE, 0) 160 FALSE, 0)
161 ); 161 );
@@ -254,7 +254,7 @@ process_arguments (int argc, char **argv)
254 254
255 c = optind; 255 c = optind;
256 256
257 set_thresholds(&thlds, warning, critical); 257 set_thresholds(&my_thresholds, warning, critical);
258 258
259 return validate_arguments (); 259 return validate_arguments ();
260} 260}