summaryrefslogtreecommitdiffstats
path: root/web/attachments/146297-check_http--more_perf_data.diff
blob: ffc3dbaf6ebfc0a91ec12aafb272b5dcd5b0dc8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
 }