summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@users.sourceforge.net>2007-12-10 01:13:55 (GMT)
committerMatthias Eble <psychotrahe@users.sourceforge.net>2007-12-10 01:13:55 (GMT)
commit2c82ed763bdfb410ef3bb3b07e88ee4b0cc91fd8 (patch)
tree791acd4281cdacfa8ee9fcbe853560183428dd8d
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
-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 3637423..728e7c1 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -939,14 +939,14 @@ check_http (void)
939 microsec = deltime (tv); 939 microsec = deltime (tv);
940 elapsed_time = (double)microsec / 1.0e6; 940 elapsed_time = (double)microsec / 1.0e6;
941 asprintf (&msg, 941 asprintf (&msg,
942 _("HTTP WARNING: %s - %.3f second response time %s|%s %s\n"), 942 _(" - %s - %.3f second response time %s|%s %s\n"),
943 status_line, elapsed_time, 943 status_line, elapsed_time,
944 (display_html ? "</A>" : ""), 944 (display_html ? "</A>" : ""),
945 perfd_time (elapsed_time), perfd_size (pagesize)); 945 perfd_time (elapsed_time), perfd_size (pagesize));
946 if (check_critical_time == TRUE && elapsed_time > critical_time) 946 if (check_critical_time == TRUE && elapsed_time > critical_time)
947 die (STATE_CRITICAL, "%s", msg); 947 die (STATE_CRITICAL, "HTTP %s: %s", _("CRITICAL"), msg);
948 if (check_warning_time == TRUE && elapsed_time > warning_time) 948 if (check_warning_time == TRUE && elapsed_time > warning_time)
949 die (STATE_WARNING, "%s", msg); 949 die (STATE_WARNING, "HTTP %s: %s", _("WARNING"), msg);
950 950
951 /* Page and Header content checks go here */ 951 /* Page and Header content checks go here */
952 /* these checks should be last */ 952 /* these checks should be last */