aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-12-10 01:13:55 +0000
committerGravatar Matthias Eble <psychotrahe@users.sourceforge.net> 2007-12-10 01:13:55 +0000
commit2c82ed763bdfb410ef3bb3b07e88ee4b0cc91fd8 (patch)
tree791acd4281cdacfa8ee9fcbe853560183428dd8d /plugins/check_http.c
parent3bb4b6b336b383c8f1686476cfb96ec674255683 (diff)
downloadmonitoring-plugins-2c82ed763bdfb410ef3bb3b07e88ee4b0cc91fd8.tar.gz
Fix output when response time is critical. Thanks to Nobuhiro Ban (patch #1817228)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1852 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 36374233..728e7c13 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -939,14 +939,14 @@ check_http (void)
microsec = deltime (tv);
elapsed_time = (double)microsec / 1.0e6;
asprintf (&msg,
- _("HTTP WARNING: %s - %.3f second response time %s|%s %s\n"),
+ _(" - %s - %.3f second response time %s|%s %s\n"),
status_line, elapsed_time,
(display_html ? "</A>" : ""),
perfd_time (elapsed_time), perfd_size (pagesize));
if (check_critical_time == TRUE && elapsed_time > critical_time)
- die (STATE_CRITICAL, "%s", msg);
+ die (STATE_CRITICAL, "HTTP %s: %s", _("CRITICAL"), msg);
if (check_warning_time == TRUE && elapsed_time > warning_time)
- die (STATE_WARNING, "%s", msg);
+ die (STATE_WARNING, "HTTP %s: %s", _("WARNING"), msg);
/* Page and Header content checks go here */
/* these checks should be last */