diff options
author | Jan Wagner <waja@cyconet.org> | 2014-06-23 22:20:03 +0200 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-06-23 22:20:03 +0200 |
commit | be55da1d2301c002e0ae7b70c21e75cc6b1997a8 (patch) | |
tree | 8f954ab08366774d9f5446a2d399632a79e14802 | |
parent | f52efd00bfc747cca182f51d61fdd65b94c1d58a (diff) | |
download | monitoring-plugins-be55da1.tar.gz |
check_ups/check_dbi: Fixing spelling bug
-rw-r--r-- | plugins/check_dbi.c | 6 | ||||
-rw-r--r-- | plugins/check_ups.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c index c6244fd2..a3d033f4 100644 --- a/plugins/check_dbi.c +++ b/plugins/check_dbi.c | |||
@@ -215,7 +215,7 @@ main (int argc, char **argv) | |||
215 | } | 215 | } |
216 | 216 | ||
217 | if (dbi_conn_connect (conn) < 0) { | 217 | if (dbi_conn_connect (conn) < 0) { |
218 | np_dbi_print_error (conn, "UNKOWN - failed to connect to database"); | 218 | np_dbi_print_error (conn, "UNKNOWN - failed to connect to database"); |
219 | return STATE_UNKNOWN; | 219 | return STATE_UNKNOWN; |
220 | } | 220 | } |
221 | 221 | ||
@@ -241,7 +241,7 @@ main (int argc, char **argv) | |||
241 | printf ("Selecting database '%s'\n", np_dbi_database); | 241 | printf ("Selecting database '%s'\n", np_dbi_database); |
242 | 242 | ||
243 | if (dbi_conn_select_db (conn, np_dbi_database)) { | 243 | if (dbi_conn_select_db (conn, np_dbi_database)) { |
244 | np_dbi_print_error (conn, "UNKOWN - failed to select database '%s'", | 244 | np_dbi_print_error (conn, "UNKNOWN - failed to select database '%s'", |
245 | np_dbi_database); | 245 | np_dbi_database); |
246 | return STATE_UNKNOWN; | 246 | return STATE_UNKNOWN; |
247 | } | 247 | } |
@@ -456,7 +456,7 @@ process_arguments (int argc, char **argv) | |||
456 | new = realloc (np_dbi_options, | 456 | new = realloc (np_dbi_options, |
457 | (np_dbi_options_num + 1) * sizeof (*new)); | 457 | (np_dbi_options_num + 1) * sizeof (*new)); |
458 | if (! new) { | 458 | if (! new) { |
459 | printf ("UNKOWN - failed to reallocate memory\n"); | 459 | printf ("UNKNOWN - failed to reallocate memory\n"); |
460 | exit (STATE_UNKNOWN); | 460 | exit (STATE_UNKNOWN); |
461 | } | 461 | } |
462 | 462 | ||
diff --git a/plugins/check_ups.c b/plugins/check_ups.c index 7cced495..099881d0 100644 --- a/plugins/check_ups.c +++ b/plugins/check_ups.c | |||
@@ -66,7 +66,7 @@ enum { | |||
66 | #define UPSSTATUS_BOOST 512 | 66 | #define UPSSTATUS_BOOST 512 |
67 | #define UPSSTATUS_CHRG 1024 | 67 | #define UPSSTATUS_CHRG 1024 |
68 | #define UPSSTATUS_DISCHRG 2048 | 68 | #define UPSSTATUS_DISCHRG 2048 |
69 | #define UPSSTATUS_UNKOWN 4096 | 69 | #define UPSSTATUS_UNKNOWN 4096 |
70 | 70 | ||
71 | enum { NOSUCHVAR = ERROR-1 }; | 71 | enum { NOSUCHVAR = ERROR-1 }; |
72 | 72 | ||
@@ -181,7 +181,7 @@ main (int argc, char **argv) | |||
181 | if (status & UPSSTATUS_DISCHRG) { | 181 | if (status & UPSSTATUS_DISCHRG) { |
182 | xasprintf (&ups_status, "%s%s", ups_status, _(", Discharging")); | 182 | xasprintf (&ups_status, "%s%s", ups_status, _(", Discharging")); |
183 | } | 183 | } |
184 | if (status & UPSSTATUS_UNKOWN) { | 184 | if (status & UPSSTATUS_UNKNOWN) { |
185 | xasprintf (&ups_status, "%s%s", ups_status, _(", Unknown")); | 185 | xasprintf (&ups_status, "%s%s", ups_status, _(", Unknown")); |
186 | } | 186 | } |
187 | } | 187 | } |
@@ -379,7 +379,7 @@ determine_status (void) | |||
379 | else if (!strcmp (ptr, "DISCHRG")) | 379 | else if (!strcmp (ptr, "DISCHRG")) |
380 | status |= UPSSTATUS_DISCHRG; | 380 | status |= UPSSTATUS_DISCHRG; |
381 | else | 381 | else |
382 | status |= UPSSTATUS_UNKOWN; | 382 | status |= UPSSTATUS_UNKNOWN; |
383 | } | 383 | } |
384 | 384 | ||
385 | return OK; | 385 | return OK; |