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. --- .../146297-check_http--more_perf_data.diff | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 web/attachments/146297-check_http--more_perf_data.diff (limited to 'web/attachments/146297-check_http--more_perf_data.diff') diff --git a/web/attachments/146297-check_http--more_perf_data.diff b/web/attachments/146297-check_http--more_perf_data.diff new file mode 100644 index 0000000..ffc3dba --- /dev/null +++ b/web/attachments/146297-check_http--more_perf_data.diff @@ -0,0 +1,38 @@ +--- check_http.c.orig 2005-08-19 10:38:29.000000000 -0500 ++++ check_http.c 2005-08-19 11:38:29.000000000 -0500 +@@ -20,8 +20,8 @@ + /* splint -I. -I../../plugins -I../../lib/ -I/usr/kerberos/include/ ../../plugins/check_http.c */ + + const char *progname = "check_http"; +-const char *revision = "$Revision: 1.81 $"; +-const char *copyright = "1999-2004"; ++const char *revision = "$Revision: 1.9 $"; ++const char *copyright = "1999-2005"; + const char *email = "nagiosplug-devel@lists.sourceforge.net"; + + #include "common.h" +@@ -1356,20 +1356,20 @@ + stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min); + + if (days_left > 0 && days_left <= days_till_exp) { +- printf (_("WARNING - Certificate expires in %d day(s) (%s).\n"), days_left, timestamp); ++ printf (_("WARNING - Certificate expires in %d day(s) (%s). | cert_valid=1;1;2\n"), days_left, timestamp); + return STATE_WARNING; + } + if (days_left < 0) { +- printf (_("CRITICAL - Certificate expired on %s.\n"), timestamp); ++ printf (_("CRITICAL - Certificate expired on %s. | cert_valid=2;1;2\n"), timestamp); + return STATE_CRITICAL; + } + + if (days_left == 0) { +- printf (_("WARNING - Certificate expires today (%s).\n"), timestamp); ++ printf (_("WARNING - Certificate expires today (%s). | cert_valid=1;1;2\n"), timestamp); + return STATE_WARNING; + } + +- printf (_("OK - Certificate will expire on %s.\n"), timestamp); ++ printf (_("OK - Certificate will expire on %s. | cert_valid=0;1;2\n"), timestamp); + + return STATE_OK; + } -- cgit v1.2.3-74-g34f1