summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 250a82a)
raw | patch | inline | side by side (parent: 250a82a)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 19 Dec 2007 10:08:06 +0000 (10:08 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 19 Dec 2007 10:08:06 +0000 (10:08 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1879 f882894a-f735-0410-b71e-b25c423dba1c
NEWS | patch | blob | history | |
plugins/check_tcp.c | patch | blob | history |
index 37d2ac1e50f269798ff5ce8aa2defa2442ad4d6c..372498e4efa806df83a92d8cf269a0de8b1b0e27 100644 (file)
--- a/NEWS
+++ b/NEWS
1.4.12 or 1.5 ??
Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren)
+ check_tcp now returns UNKNOWN with invalid hostname
1.4.11 13th December 2007
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 e502c0d1e52eacbe2f021478413a4602e8ef045d..7e4700967fbaf3fadee9eac8174b99f6caad2e54 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)
- 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;
}