diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-21 13:31:01 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-21 13:31:01 (GMT) |
commit | 6f84a6574b097eba3f727e5f2b257309ca6c0e1b (patch) | |
tree | da29c0b6c3fadf94b78a3aa70974ee76fbad7018 /plugins/check_tcp.c | |
parent | 5778b1890e1c328cb38a5f47e886368ab5793bd8 (diff) | |
download | monitoring-plugins-6f84a6574b097eba3f727e5f2b257309ca6c0e1b.tar.gz |
Return CRITICAL if hostname invalid, as per guidelines
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1335 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 08ec856..5915af2 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -549,7 +549,7 @@ process_arguments (int argc, char **argv) | |||
549 | if (server_address == NULL) | 549 | if (server_address == NULL) |
550 | usage4 (_("You must provide a server address")); | 550 | usage4 (_("You must provide a server address")); |
551 | else if (server_address[0] != '/' && is_host (server_address) == FALSE) | 551 | else if (server_address[0] != '/' && is_host (server_address) == FALSE) |
552 | usage2 (_("Invalid hostname, address, or socket"), server_address); | 552 | die (STATE_CRITICAL, "%s: %s - %s\n", progname, _("Invalid hostname, address or socket"), server_address); |
553 | 553 | ||
554 | return TRUE; | 554 | return TRUE; |
555 | } | 555 | } |