diff options
author | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-12 02:29:48 +0000 |
---|---|---|
committer | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-12 02:29:48 +0000 |
commit | 91b223642a7b7f493cf87f507928d249ede27e5a (patch) | |
tree | bb3f6a3c74a1b7f806fa22b1ee0ad07480b4fa71 /plugins/check_http.c | |
parent | 831d03cd768cb4d1f96d3cabd6262a0a55f904e7 (diff) | |
download | monitoring-plugins-91b223642a7b7f493cf87f507928d249ede27e5a.tar.gz |
Code clean-up
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@403 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index d6f2c15a..c947bd87 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -820,7 +820,7 @@ check_http (void) if (strlen (string_expect)) { if (strstr (page, string_expect)) { - printf ("HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n", + printf ("HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n", status_line, elapsed_time, timestamp, (display_html ? "</A>" : ""), elapsed_time); exit (STATE_OK); @@ -835,7 +835,7 @@ check_http (void) if (strlen (regexp)) { errcode = regexec (&preg, page, REGS, pmatch, 0); if (errcode == 0) { - printf ("HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n", + printf ("HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n", status_line, elapsed_time, timestamp, (display_html ? "</A>" : ""), elapsed_time); exit (STATE_OK); @@ -863,7 +863,7 @@ check_http (void) exit (STATE_WARNING); } /* We only get here if all tests have been passed */ - asprintf (&msg, "HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n", + asprintf (&msg, "HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n", status_line, (float)elapsed_time, timestamp, (display_html ? "</A>" : ""), elapsed_time); terminate (STATE_OK, msg); |