SF.net SVN: nagiosplug: [1942] nagiosplug/trunk/plugins/check_smtp.c

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
Revision: 1942
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1942&view=rev
Author:   psychotrahe
Date:     2008-03-14 15:35:29 -0700 (Fri, 14 Mar 2008)

Log Message:
-----------
Enhanced check_smtp to actually print invalid response text (#1911239)

Modified Paths:
--------------
    nagiosplug/trunk/plugins/check_smtp.c

Modified: nagiosplug/trunk/plugins/check_smtp.c
===================================================================
--- nagiosplug/trunk/plugins/check_smtp.c	2008-03-14 15:44:27 UTC (rev 1941)
+++ nagiosplug/trunk/plugins/check_smtp.c	2008-03-14 22:35:29 UTC (rev 1942)
@@ -194,10 +194,10 @@
 			/* 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;
 			}
 		}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.