From 082c32f972e1fcc8f8666a3d406965a34cb3adca Mon Sep 17 00:00:00 2001 From: Matthias Eble Date: Fri, 14 Mar 2008 22:35:29 +0000 Subject: [PATCH] Enhanced check_smtp to actually print invalid response text (#1911239) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1942 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_smtp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index 97208b0..b1fc7ee 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c @@ -194,10 +194,10 @@ main (int argc, char **argv) /* make sure we find the response we are looking for */ if (!strstr (buffer, server_expect)) { if (server_port == SMTP_PORT) - printf (_("Invalid SMTP response received from host\n")); + printf (_("Invalid SMTP response received from host: %s\n"), buffer); else - printf (_("Invalid SMTP response received from host on port %d\n"), - server_port); + printf (_("Invalid SMTP response received from host on port %d: %s\n"), + server_port, buffer); result = STATE_WARNING; } } -- 2.30.2