summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3bb4b6b)
raw | patch | inline | side by side (parent: 3bb4b6b)
author | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Mon, 10 Dec 2007 01:13:55 +0000 (01:13 +0000) | ||
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | |
Mon, 10 Dec 2007 01:13:55 +0000 (01:13 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1852 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 363742335e0e9c7cc267dd758f7e7b8d3f6dc869..728e7c1381dc40dd837335ef4e706f0af30b91aa 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
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 */