diff options
author | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-12 02:29:48 (GMT) |
---|---|---|
committer | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-12 02:29:48 (GMT) |
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 d6f2c15..c947bd8 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -820,7 +820,7 @@ check_http (void) | |||
820 | 820 | ||
821 | if (strlen (string_expect)) { | 821 | if (strlen (string_expect)) { |
822 | if (strstr (page, string_expect)) { | 822 | if (strstr (page, string_expect)) { |
823 | printf ("HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n", | 823 | printf ("HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n", |
824 | status_line, elapsed_time, | 824 | status_line, elapsed_time, |
825 | timestamp, (display_html ? "</A>" : ""), elapsed_time); | 825 | timestamp, (display_html ? "</A>" : ""), elapsed_time); |
826 | exit (STATE_OK); | 826 | exit (STATE_OK); |
@@ -835,7 +835,7 @@ check_http (void) | |||
835 | if (strlen (regexp)) { | 835 | if (strlen (regexp)) { |
836 | errcode = regexec (&preg, page, REGS, pmatch, 0); | 836 | errcode = regexec (&preg, page, REGS, pmatch, 0); |
837 | if (errcode == 0) { | 837 | if (errcode == 0) { |
838 | printf ("HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n", | 838 | printf ("HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n", |
839 | status_line, elapsed_time, | 839 | status_line, elapsed_time, |
840 | timestamp, (display_html ? "</A>" : ""), elapsed_time); | 840 | timestamp, (display_html ? "</A>" : ""), elapsed_time); |
841 | exit (STATE_OK); | 841 | exit (STATE_OK); |
@@ -863,7 +863,7 @@ check_http (void) | |||
863 | exit (STATE_WARNING); | 863 | exit (STATE_WARNING); |
864 | } | 864 | } |
865 | /* We only get here if all tests have been passed */ | 865 | /* We only get here if all tests have been passed */ |
866 | asprintf (&msg, "HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n", | 866 | asprintf (&msg, "HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n", |
867 | status_line, (float)elapsed_time, | 867 | status_line, (float)elapsed_time, |
868 | timestamp, (display_html ? "</A>" : ""), elapsed_time); | 868 | timestamp, (display_html ? "</A>" : ""), elapsed_time); |
869 | terminate (STATE_OK, msg); | 869 | terminate (STATE_OK, msg); |