[Nagiosplug-checkins] SF.net SVN: nagiosplug: [1900] nagiosplug/trunk

tonvoon at users.sourceforge.net tonvoon at users.sourceforge.net
Tue Jan 8 12:51:53 CET 2008


Revision: 1900
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1900&view=rev
Author:   tonvoon
Date:     2008-01-08 03:51:53 -0800 (Tue, 08 Jan 2008)

Log Message:
-----------
Reverted commit 1879 where an invalid hostname returns UNKNOWN - back to CRITICAL

Modified Paths:
--------------
    nagiosplug/trunk/NEWS
    nagiosplug/trunk/plugins/check_tcp.c

Modified: nagiosplug/trunk/NEWS
===================================================================
--- nagiosplug/trunk/NEWS	2008-01-08 11:35:06 UTC (rev 1899)
+++ nagiosplug/trunk/NEWS	2008-01-08 11:51:53 UTC (rev 1900)
@@ -2,7 +2,6 @@
 
 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)

Modified: nagiosplug/trunk/plugins/check_tcp.c
===================================================================
--- nagiosplug/trunk/plugins/check_tcp.c	2008-01-08 11:35:06 UTC (rev 1899)
+++ nagiosplug/trunk/plugins/check_tcp.c	2008-01-08 11:51:53 UTC (rev 1900)
@@ -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_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;
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list