summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index d6f2c15..c947bd8 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -820,7 +820,7 @@ check_http (void)
820 820
821 if (strlen (string_expect)) { 821 if (strlen (string_expect)) {
822 if (strstr (page, string_expect)) { 822 if (strstr (page, string_expect)) {
823 printf ("HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n", 823 printf ("HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n",
824 status_line, elapsed_time, 824 status_line, elapsed_time,
825 timestamp, (display_html ? "</A>" : ""), elapsed_time); 825 timestamp, (display_html ? "</A>" : ""), elapsed_time);
826 exit (STATE_OK); 826 exit (STATE_OK);
@@ -835,7 +835,7 @@ check_http (void)
835 if (strlen (regexp)) { 835 if (strlen (regexp)) {
836 errcode = regexec (&preg, page, REGS, pmatch, 0); 836 errcode = regexec (&preg, page, REGS, pmatch, 0);
837 if (errcode == 0) { 837 if (errcode == 0) {
838 printf ("HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n", 838 printf ("HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n",
839 status_line, elapsed_time, 839 status_line, elapsed_time,
840 timestamp, (display_html ? "</A>" : ""), elapsed_time); 840 timestamp, (display_html ? "</A>" : ""), elapsed_time);
841 exit (STATE_OK); 841 exit (STATE_OK);
@@ -863,7 +863,7 @@ check_http (void)
863 exit (STATE_WARNING); 863 exit (STATE_WARNING);
864 } 864 }
865 /* We only get here if all tests have been passed */ 865 /* We only get here if all tests have been passed */
866 asprintf (&msg, "HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n", 866 asprintf (&msg, "HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n",
867 status_line, (float)elapsed_time, 867 status_line, (float)elapsed_time,
868 timestamp, (display_html ? "</A>" : ""), elapsed_time); 868 timestamp, (display_html ? "</A>" : ""), elapsed_time);
869 terminate (STATE_OK, msg); 869 terminate (STATE_OK, msg);