summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2aec83)
raw | patch | inline | side by side (parent: e2aec83)
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Mon, 16 Mar 2009 07:06:33 +0000 (03:06 -0400) | ||
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Mon, 16 Mar 2009 07:06:33 +0000 (03:06 -0400) |
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index e140be01bf79f47dc86bf31ead3393dd39d9e44a..248c0f94d3b652c27c3b38f0c366c99a500a4aeb 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
}
/* 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 */
/* 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 ? "</A>" : ""),
perfd_time (elapsed_time), perfd_size (page_len));