summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2e0da16)
raw | patch | inline | side by side (parent: 2e0da16)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 8 Jan 2008 11:51:53 +0000 (11:51 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 8 Jan 2008 11:51:53 +0000 (11:51 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1900 f882894a-f735-0410-b71e-b25c423dba1c
NEWS | patch | blob | history | |
plugins/check_tcp.c | patch | blob | history |
index a58c4cecb8e2664532dcb88b835777aa5251e402..d25f8b3d9c9f8a3c97788186888ef77a5af27a6b 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
New check_icmp -s option to specify the source IP address
check_dns now sorts addresses for testing results for more than one returned IP (Matthias Urlichs)
Fix segfault in check_ntp_time and (deprecated) check_ntp. (Bug #1862300)
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 7e4700967fbaf3fadee9eac8174b99f6caad2e54..e502c0d1e52eacbe2f021478413a4602e8ef045d 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_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;
}