summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5778b18)
raw | patch | inline | side by side (parent: 5778b18)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 21 Mar 2006 13:31:01 +0000 (13:31 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 21 Mar 2006 13:31:01 +0000 (13:31 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1335 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_tcp.c | patch | blob | history |
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 08ec85650042d9fc470308a9ed69b27ab5e7f53b..5915af2c1785192fa33fdaae3702479d05581231 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
if (server_address == NULL)
usage4 (_("You must provide a server address"));
else if (server_address[0] != '/' && is_host (server_address) == FALSE)
- usage2 (_("Invalid hostname, address, or socket"), server_address);
+ die (STATE_CRITICAL, "%s: %s - %s\n", progname, _("Invalid hostname, address or socket"), server_address);
return TRUE;
}