summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--plugins/check_tcp.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 37d2ac1e..372498e4 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ This file documents the major additions and syntax changes between releases.
2 2
31.4.12 or 1.5 ?? 31.4.12 or 1.5 ??
4 Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren) 4 Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren)
5 check_tcp now returns UNKNOWN with invalid hostname
5 6
61.4.11 13th December 2007 71.4.11 13th December 2007
7 Fixed check_http regression in 1.4.10 where following redirects to 8 Fixed check_http regression in 1.4.10 where following redirects to
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index e502c0d1..7e470096 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -584,7 +584,7 @@ process_arguments (int argc, char **argv)
584 if (server_address == NULL) 584 if (server_address == NULL)
585 usage4 (_("You must provide a server address")); 585 usage4 (_("You must provide a server address"));
586 else if (server_address[0] != '/' && is_host (server_address) == FALSE) 586 else if (server_address[0] != '/' && is_host (server_address) == FALSE)
587 die (STATE_CRITICAL, "%s %s - %s: %s\n", SERVICE, state_text(STATE_CRITICAL), _("Invalid hostname, address or socket"), server_address); 587 die (STATE_UNKNOWN, "%s %s - %s: %s\n", SERVICE, state_text(STATE_UNKNOWN), _("Invalid hostname, address or socket"), server_address);
588 588
589 return TRUE; 589 return TRUE;
590} 590}