aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_tcp.c
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2007-12-19 10:08:06 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2007-12-19 10:08:06 +0000
commit65e066acfa53f01abeab0ebf3f319110a104aaa1 (patch)
tree67fe5ffd42a8d845ddaeb74f7bc16dbad167b2ba /plugins/check_tcp.c
parent250a82a57c9b467ff14036907b4fdaa5dc95bfd0 (diff)
downloadmonitoring-plugins-65e066acfa53f01abeab0ebf3f319110a104aaa1.tar.gz
check_tcp now returns UNKNOWN with an invalid hostname on command line
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1879 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 e502c0d1..7e470096 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_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;
}