From 2c82ed763bdfb410ef3bb3b07e88ee4b0cc91fd8 Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Mon, 10 Dec 2007 01:13:55 +0000 Subject: 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 diff --git a/plugins/check_http.c b/plugins/check_http.c index 3637423..728e7c1 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 ? "" : ""), 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 */ -- cgit v0.10-9-g596f