diff options
| author | Greg Cox <gcox@fibbsbozza.local> | 2014-07-29 18:52:12 -0400 |
|---|---|---|
| committer | Greg Cox <gcox@fibbsbozza.local> | 2014-07-29 18:52:12 -0400 |
| commit | 4273dd06ff3e52094d6b267d00e8c51dd74de364 (patch) | |
| tree | 425d127da5dbec7013999ed01b469fc3f72992d9 /plugins/check_dbi.c | |
| parent | f05e7016320f4671fbf86cc5abc277efea20f79e (diff) | |
| parent | 6f3d5825b203b75aef8d68bf0d117e7a1a4c0616 (diff) | |
| download | monitoring-plugins-4273dd06ff3e52094d6b267d00e8c51dd74de364.tar.gz | |
Merge remote-tracking branch 'upstream/master'
Conflicts:
plugins/netutils.c
Diffstat (limited to 'plugins/check_dbi.c')
| -rw-r--r-- | plugins/check_dbi.c | 6 |
1 files changed, 3 insertions, 3 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 | ||
