Revision: 1879
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1879&view=rev
Author: tonvoon
Date: 2007-12-19 02:08:06 -0800 (Wed, 19 Dec 2007)
Log Message:
-----------
check_tcp now returns UNKNOWN with an invalid hostname on command line
Modified Paths:
--------------
nagiosplug/trunk/NEWS
nagiosplug/trunk/plugins/check_tcp.c
Modified: nagiosplug/trunk/NEWS
===================================================================
--- nagiosplug/trunk/NEWS 2007-12-18 14:24:19 UTC (rev 1878)
+++ nagiosplug/trunk/NEWS 2007-12-19 10:08:06 UTC (rev 1879)
@@ -2,6 +2,7 @@
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
Modified: nagiosplug/trunk/plugins/check_tcp.c
===================================================================
--- nagiosplug/trunk/plugins/check_tcp.c 2007-12-18 14:24:19 UTC (rev 1878)
+++ nagiosplug/trunk/plugins/check_tcp.c 2007-12-19 10:08:06 UTC (rev 1879)
@@ -584,7 +584,7 @@
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.