--- 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; }