summaryrefslogtreecommitdiffstats
path: root/web/attachments/354598-patch-check_radius.c.txt
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/354598-patch-check_radius.c.txt
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/354598-patch-check_radius.c.txt')
-rw-r--r--web/attachments/354598-patch-check_radius.c.txt21
1 files changed, 21 insertions, 0 deletions
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 @@
1--- plugins/check_radius.c.virgin 2009-12-09 18:04:27.000000000 -0800
2+++ plugins/check_radius.c 2009-12-09 18:27:42.000000000 -0800
3@@ -191,13 +191,16 @@
4 die (STATE_CRITICAL, _("Timeout"));
5 if (result == ERROR_RC)
6 die (STATE_CRITICAL, _("Auth Error"));
7- if (result == BADRESP_RC)
8+ if (result == REJECT_RC)
9 die (STATE_WARNING, _("Auth Failed"));
10+ if (result == BADRESP_RC)
11+ die (STATE_WARNING, _("Bad Response"));
12 if (expect && !strstr (msg, expect))
13 die (STATE_WARNING, "%s", msg);
14 if (result == OK_RC)
15 die (STATE_OK, _("Auth OK"));
16- return (0);
17+ (void)snprintf(msg, sizeof(msg), "unexpected result code %d", result);
18+ die (STATE_UNKNOWN, _(msg));
19 }
20
21