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

psychotrahe at users.sourceforge.net psychotrahe at users.sourceforge.net
Fri Mar 14 23:35:29 CET 2008


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.




More information about the Commits mailing list