summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@users.sourceforge.net>2008-03-14 22:35:29 +0000
committerMatthias Eble <psychotrahe@users.sourceforge.net>2008-03-14 22:35:29 +0000
commit082c32f972e1fcc8f8666a3d406965a34cb3adca (patch)
tree60488e3472ce8446bc1707f5885a43f1008d0ec2
parent9188225da4af5d09a59590a563b5516879b81579 (diff)
downloadmonitoring-plugins-082c32f972e1fcc8f8666a3d406965a34cb3adca.tar.gz
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
-rw-r--r--plugins/check_smtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 97208b05..b1fc7ee0 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -194,10 +194,10 @@ main (int argc, char **argv)
194 /* make sure we find the response we are looking for */ 194 /* make sure we find the response we are looking for */
195 if (!strstr (buffer, server_expect)) { 195 if (!strstr (buffer, server_expect)) {
196 if (server_port == SMTP_PORT) 196 if (server_port == SMTP_PORT)
197 printf (_("Invalid SMTP response received from host\n")); 197 printf (_("Invalid SMTP response received from host: %s\n"), buffer);
198 else 198 else
199 printf (_("Invalid SMTP response received from host on port %d\n"), 199 printf (_("Invalid SMTP response received from host on port %d: %s\n"),
200 server_port); 200 server_port, buffer);
201 result = STATE_WARNING; 201 result = STATE_WARNING;
202 } 202 }
203 } 203 }