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 <[email protected]>
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.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.