From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/50922-check_dns.c.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 web/attachments/50922-check_dns.c.patch (limited to 'web/attachments/50922-check_dns.c.patch') diff --git a/web/attachments/50922-check_dns.c.patch b/web/attachments/50922-check_dns.c.patch new file mode 100644 index 0000000..e1ea021 --- /dev/null +++ b/web/attachments/50922-check_dns.c.patch @@ -0,0 +1,27 @@ +*** check_dns.c?rev=1.13 Wed May 21 13:09:44 2003 +--- check_dns.c Wed May 21 13:13:13 2003 +*************** +*** 180,189 **** + } + + /* compare to expected address */ +! if (result == STATE_OK && match_expected_address && strcmp(address, expected_address)) { +! result = STATE_CRITICAL; +! asprintf(&output, "expected %s but got %s", expected_address, address); + } + + elapsed_time = delta_time (tv); + +--- 180,191 ---- + } + + /* compare to expected address */ +! if (result == STATE_OK && match_expected_address) { +! if ((address == NULL) || strcmp(address, expected_address)) { +! result = STATE_CRITICAL; +! asprintf(&output, "expected %s but got %s", expected_address, address); + } ++ } + + elapsed_time = delta_time (tv); + -- cgit v1.2.3-74-g34f1