aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_tcp.c
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2008-01-08 11:51:53 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2008-01-08 11:51:53 +0000
commit31a58a1535235b6d9ea5761e36c06aaf478864ce (patch)
tree29aaf65c41a547e3f5fee45e0a642c9fe86d4a04 /plugins/check_tcp.c
parent2e0da16fad96241dc6bde04daecc7ced840e9c9a (diff)
downloadmonitoring-plugins-31a58a1535235b6d9ea5761e36c06aaf478864ce.tar.gz
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
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r--plugins/check_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 7e470096..e502c0d1 100644
--- a/plugins/check_tcp.c
+++ b/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;
}