From: Thomas Guyot-Sionnest Date: Mon, 16 Mar 2009 07:06:33 +0000 (-0400) Subject: check_http fixes: X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6b8502bee6f426eb7c3239c346c909c948bc3e77;hp=e2aec83e61487916d32ac98bd4c3171cd6899efd;p=nagiosplug.git check_http fixes: - Fix broken printf on 500 errors - Add bytes to normal output (accidentally removed in 0d78171) --- diff --git a/plugins/check_http.c b/plugins/check_http.c index e140be0..248c0f9 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -975,7 +975,7 @@ check_http (void) } /* server errors result in a critical state */ else if (http_status >= 500) { - asprintf (&msg, _("%s - "), msg, status_line); + asprintf (&msg, _("%s - "), status_line); result = STATE_CRITICAL; } /* client errors result in a warning state */ @@ -1059,8 +1059,8 @@ check_http (void) /* check elapsed time */ asprintf (&msg, - _("%s - %.3f second response time %s|%s %s"), - msg, elapsed_time, + _("%s - %d bytes in %.3f second response time %s|%s %s"), + msg, page_len, elapsed_time, (display_html ? "" : ""), perfd_time (elapsed_time), perfd_size (page_len));