diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2008-01-08 11:51:53 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2008-01-08 11:51:53 +0000 |
commit | 31a58a1535235b6d9ea5761e36c06aaf478864ce (patch) | |
tree | 29aaf65c41a547e3f5fee45e0a642c9fe86d4a04 | |
parent | 2e0da16fad96241dc6bde04daecc7ced840e9c9a (diff) | |
download | monitoring-plugins-31a58a1535235b6d9ea5761e36c06aaf478864ce.tar.gz |
Reverted commit 1879 where an invalid hostname returns UNKNOWN - back to CRITICAL
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1900 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | plugins/check_tcp.c | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -2,7 +2,6 @@ This file documents the major additions and syntax changes between releases. | |||
2 | 2 | ||
3 | 1.4.12 or 1.5 ?? | 3 | 1.4.12 or 1.5 ?? |
4 | Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren) | 4 | Added ./check_nt -v INSTANCES to count number of instances (Alessandro Ren) |
5 | check_tcp now returns UNKNOWN with invalid hostname | ||
6 | New check_icmp -s option to specify the source IP address | 5 | New check_icmp -s option to specify the source IP address |
7 | check_dns now sorts addresses for testing results for more than one returned IP (Matthias Urlichs) | 6 | check_dns now sorts addresses for testing results for more than one returned IP (Matthias Urlichs) |
8 | Fix segfault in check_ntp_time and (deprecated) check_ntp. (Bug #1862300) | 7 | 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 7e470096..e502c0d1 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -584,7 +584,7 @@ process_arguments (int argc, char **argv) | |||
584 | if (server_address == NULL) | 584 | if (server_address == NULL) |
585 | usage4 (_("You must provide a server address")); | 585 | usage4 (_("You must provide a server address")); |
586 | else if (server_address[0] != '/' && is_host (server_address) == FALSE) | 586 | else if (server_address[0] != '/' && is_host (server_address) == FALSE) |
587 | die (STATE_UNKNOWN, "%s %s - %s: %s\n", SERVICE, state_text(STATE_UNKNOWN), _("Invalid hostname, address or socket"), server_address); | 587 | die (STATE_CRITICAL, "%s %s - %s: %s\n", SERVICE, state_text(STATE_CRITICAL), _("Invalid hostname, address or socket"), server_address); |
588 | 588 | ||
589 | return TRUE; | 589 | return TRUE; |
590 | } | 590 | } |