diff options
Diffstat (limited to 'plugins/check_pgsql.c')
| -rw-r--r-- | plugins/check_pgsql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c index 5fbffa70..0ce75e0a 100644 --- a/plugins/check_pgsql.c +++ b/plugins/check_pgsql.c | |||
| @@ -270,7 +270,7 @@ int main(int argc, char **argv) { | |||
| 270 | 270 | ||
| 271 | switch (query_result.error_code) { | 271 | switch (query_result.error_code) { |
| 272 | case QUERY_OK: { | 272 | case QUERY_OK: { |
| 273 | // Query was succesful and there is a numerical result | 273 | // Query was successful and there is a numerical result |
| 274 | sc_query = mp_set_subcheck_state(sc_query, STATE_OK); | 274 | sc_query = mp_set_subcheck_state(sc_query, STATE_OK); |
| 275 | xasprintf(&sc_query.output, "%s succeeded", sc_query.output); | 275 | xasprintf(&sc_query.output, "%s succeeded", sc_query.output); |
| 276 | 276 | ||
| @@ -286,7 +286,7 @@ int main(int argc, char **argv) { | |||
| 286 | mp_add_perfdata_to_subcheck(&sc_query_compare, pd_query); | 286 | mp_add_perfdata_to_subcheck(&sc_query_compare, pd_query); |
| 287 | 287 | ||
| 288 | if (query_compare_state == STATE_OK) { | 288 | if (query_compare_state == STATE_OK) { |
| 289 | xasprintf(&sc_query_compare.output, "query result '%f' is withing thresholds", | 289 | xasprintf(&sc_query_compare.output, "query result '%f' is within thresholds", |
| 290 | query_result.numerical_result); | 290 | query_result.numerical_result); |
| 291 | } else { | 291 | } else { |
| 292 | xasprintf(&sc_query_compare.output, "query result '%f' is violating thresholds", | 292 | xasprintf(&sc_query_compare.output, "query result '%f' is violating thresholds", |
