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/354598-patch-check_radius.c.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 web/attachments/354598-patch-check_radius.c.txt (limited to 'web/attachments/354598-patch-check_radius.c.txt') diff --git a/web/attachments/354598-patch-check_radius.c.txt b/web/attachments/354598-patch-check_radius.c.txt new file mode 100644 index 0000000..4a57128 --- /dev/null +++ b/web/attachments/354598-patch-check_radius.c.txt @@ -0,0 +1,21 @@ +--- plugins/check_radius.c.virgin 2009-12-09 18:04:27.000000000 -0800 ++++ plugins/check_radius.c 2009-12-09 18:27:42.000000000 -0800 +@@ -191,13 +191,16 @@ + die (STATE_CRITICAL, _("Timeout")); + if (result == ERROR_RC) + die (STATE_CRITICAL, _("Auth Error")); +- if (result == BADRESP_RC) ++ if (result == REJECT_RC) + die (STATE_WARNING, _("Auth Failed")); ++ if (result == BADRESP_RC) ++ die (STATE_WARNING, _("Bad Response")); + if (expect && !strstr (msg, expect)) + die (STATE_WARNING, "%s", msg); + if (result == OK_RC) + die (STATE_OK, _("Auth OK")); +- return (0); ++ (void)snprintf(msg, sizeof(msg), "unexpected result code %d", result); ++ die (STATE_UNKNOWN, _(msg)); + } + + -- cgit v1.2.3-74-g34f1