[Nagiosplug-checkins] SF.net SVN: nagiosplug: [1879] nagiosplug/trunk

tonvoon at users.sourceforge.net tonvoon at users.sourceforge.net
Wed Dec 19 11:08:06 CET 2007


Revision: 1879
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1879&view=rev
Author:   tonvoon
Date:     2007-12-19 02:08:06 -0800 (Wed, 19 Dec 2007)

Log Message:
-----------
check_tcp now returns UNKNOWN with an invalid hostname on command line

Modified Paths:
--------------
    nagiosplug/trunk/NEWS
    nagiosplug/trunk/plugins/check_tcp.c

Modified: nagiosplug/trunk/NEWS
===================================================================
--- nagiosplug/trunk/NEWS	2007-12-18 14:24:19 UTC (rev 1878)
+++ nagiosplug/trunk/NEWS	2007-12-19 10:08:06 UTC (rev 1879)
@@ -2,6 +2,7 @@
 
 1.4.12 or 1.5 ??
 	Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren)
+	check_tcp now returns UNKNOWN with invalid hostname
 
 1.4.11 13th December 2007
 	Fixed check_http regression in 1.4.10 where following redirects to

Modified: nagiosplug/trunk/plugins/check_tcp.c
===================================================================
--- nagiosplug/trunk/plugins/check_tcp.c	2007-12-18 14:24:19 UTC (rev 1878)
+++ nagiosplug/trunk/plugins/check_tcp.c	2007-12-19 10:08:06 UTC (rev 1879)
@@ -584,7 +584,7 @@
 	if (server_address == NULL)
 		usage4 (_("You must provide a server address"));
 	else if (server_address[0] != '/' && is_host (server_address) == FALSE)
-		die (STATE_CRITICAL, "%s %s - %s: %s\n", SERVICE, state_text(STATE_CRITICAL), _("Invalid hostname, address or socket"), server_address);
+		die (STATE_UNKNOWN, "%s %s - %s: %s\n", SERVICE, state_text(STATE_UNKNOWN), _("Invalid hostname, address or socket"), server_address);
 
 	return TRUE;
 }


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