diff options
Diffstat (limited to 'web/attachments/146297-check_http--more_perf_data.diff')
-rw-r--r-- | web/attachments/146297-check_http--more_perf_data.diff | 38 |
1 files changed, 38 insertions, 0 deletions
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 @@ | |||
1 | --- check_http.c.orig 2005-08-19 10:38:29.000000000 -0500 | ||
2 | +++ check_http.c 2005-08-19 11:38:29.000000000 -0500 | ||
3 | @@ -20,8 +20,8 @@ | ||
4 | /* splint -I. -I../../plugins -I../../lib/ -I/usr/kerberos/include/ ../../plugins/check_http.c */ | ||
5 | |||
6 | const char *progname = "check_http"; | ||
7 | -const char *revision = "$Revision: 1.81 $"; | ||
8 | -const char *copyright = "1999-2004"; | ||
9 | +const char *revision = "$Revision: 1.9 $"; | ||
10 | +const char *copyright = "1999-2005"; | ||
11 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | ||
12 | |||
13 | #include "common.h" | ||
14 | @@ -1356,20 +1356,20 @@ | ||
15 | stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min); | ||
16 | |||
17 | if (days_left > 0 && days_left <= days_till_exp) { | ||
18 | - printf (_("WARNING - Certificate expires in %d day(s) (%s).\n"), days_left, timestamp); | ||
19 | + printf (_("WARNING - Certificate expires in %d day(s) (%s). | cert_valid=1;1;2\n"), days_left, timestamp); | ||
20 | return STATE_WARNING; | ||
21 | } | ||
22 | if (days_left < 0) { | ||
23 | - printf (_("CRITICAL - Certificate expired on %s.\n"), timestamp); | ||
24 | + printf (_("CRITICAL - Certificate expired on %s. | cert_valid=2;1;2\n"), timestamp); | ||
25 | return STATE_CRITICAL; | ||
26 | } | ||
27 | |||
28 | if (days_left == 0) { | ||
29 | - printf (_("WARNING - Certificate expires today (%s).\n"), timestamp); | ||
30 | + printf (_("WARNING - Certificate expires today (%s). | cert_valid=1;1;2\n"), timestamp); | ||
31 | return STATE_WARNING; | ||
32 | } | ||
33 | |||
34 | - printf (_("OK - Certificate will expire on %s.\n"), timestamp); | ||
35 | + printf (_("OK - Certificate will expire on %s. | cert_valid=0;1;2\n"), timestamp); | ||
36 | |||
37 | return STATE_OK; | ||
38 | } | ||