[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2164] nagiosplug/trunk/plugins/check_http.c
dermoth at users.sourceforge.net
dermoth at users.sourceforge.net
Mon Mar 16 08:12:30 CET 2009
Revision: 2164
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2164&view=rev
Author: dermoth
Date: 2009-03-16 07:12:30 +0000 (Mon, 16 Mar 2009)
Log Message:
-----------
check_http fixes:
- Fix broken printf on 500 errors
- Add bytes to normal output (accidentally removed in 0d78171)
From: Thomas Guyot-Sionnest <dermoth at aei.ca>
Modified Paths:
--------------
nagiosplug/trunk/plugins/check_http.c
Modified: nagiosplug/trunk/plugins/check_http.c
===================================================================
--- nagiosplug/trunk/plugins/check_http.c 2009-03-16 07:12:15 UTC (rev 2163)
+++ nagiosplug/trunk/plugins/check_http.c 2009-03-16 07:12:30 UTC (rev 2164)
@@ -975,7 +975,7 @@
}
/* 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 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));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list