4
0
Эх сурвалжийг харах

Reverted commit 1879 where an invalid hostname returns UNKNOWN - back to CRITICAL

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1900 f882894a-f735-0410-b71e-b25c423dba1c
Ton Voon 18 жил өмнө
parent
commit
31a58a1535
2 өөрчлөгдсөн 1 нэмэгдсэн , 2 устгасан
  1. 0 1
      NEWS
  2. 1 1
      plugins/check_tcp.c

+ 0 - 1
NEWS

@@ -2,7 +2,6 @@ This file documents the major additions and syntax changes between releases.
 
 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
 	New check_icmp -s option to specify the source IP address
 	check_dns now sorts addresses for testing results for more than one returned IP (Matthias Urlichs)
 	Fix segfault in check_ntp_time and (deprecated) check_ntp. (Bug #1862300)

+ 1 - 1
plugins/check_tcp.c

@@ -584,7 +584,7 @@ process_arguments (int argc, char **argv)
 	if (server_address == NULL)
 		usage4 (_("You must provide a server address"));
 	else if (server_address[0] != '/' && is_host (server_address) == FALSE)
-		die (STATE_UNKNOWN, "%s %s - %s: %s\n", SERVICE, state_text(STATE_UNKNOWN), _("Invalid hostname, address or socket"), server_address);
+		die (STATE_CRITICAL, "%s %s - %s: %s\n", SERVICE, state_text(STATE_CRITICAL), _("Invalid hostname, address or socket"), server_address);
 
 	return TRUE;
 }