Module: monitoring-plugins Branch: master Commit: 24eea9fa34d009971378fda6754ce0a9ac01f21d Author: Daniel Stirnimann <daniel.stirnim...@gmail.com> Committer: Oliver Skibbe <oliski...@gmail.com> Date: Thu Oct 15 10:59:32 2015 +0200 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=24eea9f
check_dig: expected answer is now incasesensitive check_dig was casesensitive if an expected answer is given. Switching strstr with strcasestr fixes this issue While testing i noticed a bug where expected is not an exact match New issue for that is opened #1385 This fix closes #1233 --- plugins/check_dig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/check_dig.c b/plugins/check_dig.c index db4b20e..473d4b9 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c @@ -125,7 +125,7 @@ main (int argc, char **argv) if (verbose) printf ("%s\n", chld_out.line[i]); - if (strstr (chld_out.line[i], (expected_address == NULL ? query_address : expected_address)) != NULL) { + if (strcasestr (chld_out.line[i], (expected_address == NULL ? query_address : expected_address)) != NULL) { msg = chld_out.line[i]; result = STATE_OK;