[Nagiosplug-checkins] nagiosplug/plugins check_tcp.c,1.74,1.75

Ton Voon tonvoon at users.sourceforge.net
Tue Mar 21 08:48:01 CET 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11082

Modified Files:
	check_tcp.c 
Log Message:
Return CRITICAL if hostname invalid, as per guidelines


Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- check_tcp.c	4 Nov 2005 09:38:24 -0000	1.74
+++ check_tcp.c	21 Mar 2006 13:31:01 -0000	1.75
@@ -549,7 +549,7 @@
 	if (server_address == NULL)
 		usage4 (_("You must provide a server address"));
 	else if (server_address[0] != '/' && is_host (server_address) == FALSE)
-		usage2 (_("Invalid hostname, address, or socket"), server_address);
+		die (STATE_CRITICAL, "%s: %s - %s\n", progname, _("Invalid hostname, address or socket"), server_address);
 
 	return TRUE;
 }





More information about the Commits mailing list