mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Also support the --show-body/-B flag when --expect is used
This commit is contained in:
parent
49a0583bff
commit
f7f0f7d467
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue