Module: monitoring-plugins Branch: master Commit: f7f0f7d4671300e54e5d70278fa419c2782d9ef6 Author: Tobias Wolf <tow...@gmail.com> Date: Tue Feb 12 13:01:23 2019 +0100 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=f7f0f7d
Also support the --show-body/-B flag when --expect is used --- plugins/check_http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/check_http.c b/plugins/check_http.c index 856e1e9..de59a06 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -1155,6 +1155,8 @@ check_http (void) xasprintf (&msg, _("Invalid HTTP response received from host on port %d: %s\n"), server_port, status_line); + if (show_body) + xasprintf (&msg, _("%s\n%s"), msg, page); die (STATE_CRITICAL, "HTTP CRITICAL - %s", msg); }