diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-03-16 03:06:33 -0400 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-03-16 03:06:33 -0400 |
commit | 6b8502bee6f426eb7c3239c346c909c948bc3e77 (patch) | |
tree | 07fee137b5ff8d0f1f5e0aafffa0fc9a93d1c3e8 /plugins/check_http.c | |
parent | e2aec83e61487916d32ac98bd4c3171cd6899efd (diff) | |
download | monitoring-plugins-6b8502bee6f426eb7c3239c346c909c948bc3e77.tar.gz |
check_http fixes:
- Fix broken printf on 500 errors
- Add bytes to normal output (accidentally removed in 0d78171)
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index e140be01..248c0f94 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -975,7 +975,7 @@ check_http (void) | |||
975 | } | 975 | } |
976 | /* server errors result in a critical state */ | 976 | /* server errors result in a critical state */ |
977 | else if (http_status >= 500) { | 977 | else if (http_status >= 500) { |
978 | asprintf (&msg, _("%s - "), msg, status_line); | 978 | asprintf (&msg, _("%s - "), status_line); |
979 | result = STATE_CRITICAL; | 979 | result = STATE_CRITICAL; |
980 | } | 980 | } |
981 | /* client errors result in a warning state */ | 981 | /* client errors result in a warning state */ |
@@ -1059,8 +1059,8 @@ check_http (void) | |||
1059 | 1059 | ||
1060 | /* check elapsed time */ | 1060 | /* check elapsed time */ |
1061 | asprintf (&msg, | 1061 | asprintf (&msg, |
1062 | _("%s - %.3f second response time %s|%s %s"), | 1062 | _("%s - %d bytes in %.3f second response time %s|%s %s"), |
1063 | msg, elapsed_time, | 1063 | msg, page_len, elapsed_time, |
1064 | (display_html ? "</A>" : ""), | 1064 | (display_html ? "</A>" : ""), |
1065 | perfd_time (elapsed_time), perfd_size (page_len)); | 1065 | perfd_time (elapsed_time), perfd_size (page_len)); |
1066 | 1066 | ||