summaryrefslogtreecommitdiffstats
path: root/plugins/check_udp.c
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2004-11-24 00:46:40 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2004-11-24 00:46:40 (GMT)
commit0c1c9f51e2c33db04918d2aa322fd1f9a688979b (patch)
treec7956483bce0deb4b73ca3a6b9d0b7f2e97620db /plugins/check_udp.c
parent589d4664919638bedd6e2e1710c323887d19584a (diff)
downloadmonitoring-plugins-0c1c9f51e2c33db04918d2aa322fd1f9a688979b.tar.gz
Making messages more consistent
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@930 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_udp.c')
-rw-r--r--plugins/check_udp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_udp.c b/plugins/check_udp.c
index c4fbbf8..05ade04 100644
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
@@ -158,7 +158,7 @@ process_arguments (int argc, char **argv)
158 break; 158 break;
159 case 'H': /* hostname */ 159 case 'H': /* hostname */
160 if (is_host (optarg) == FALSE) 160 if (is_host (optarg) == FALSE)
161 usage (_("Invalid host name/address\n")); 161 usage2 (_("Invalid host name/address"), optarg);
162 server_address = optarg; 162 server_address = optarg;
163 break; 163 break;
164 case 'c': /* critical */ 164 case 'c': /* critical */
@@ -177,7 +177,7 @@ process_arguments (int argc, char **argv)
177 break; 177 break;
178 case 't': /* timeout */ 178 case 't': /* timeout */
179 if (!is_intnonneg (optarg)) 179 if (!is_intnonneg (optarg))
180 usage (_("Timeout interval must be a nonnegative integer\n")); 180 usage2 (_("Timeout interval must be a positive integer"), optarg);
181 else 181 else
182 socket_timeout = atoi (optarg); 182 socket_timeout = atoi (optarg);
183 break; 183 break;
@@ -199,7 +199,7 @@ process_arguments (int argc, char **argv)
199 c = optind; 199 c = optind;
200 if (server_address == NULL && c < argc && argv[c]) { 200 if (server_address == NULL && c < argc && argv[c]) {
201 if (is_host (argv[c]) == FALSE) 201 if (is_host (argv[c]) == FALSE)
202 usage (_("Invalid host name/address\n")); 202 usage2 (_("Invalid host name/address"), optarg);
203 server_address = argv[c++]; 203 server_address = argv[c++];
204 } 204 }
205 205
@@ -222,8 +222,8 @@ print_help (void)
222{ 222{
223 print_revision (progname, revision); 223 print_revision (progname, revision);
224 224
225 printf (_("Copyright (c) 1999 Ethan Galstad\n")); 225 printf ("Copyright (c) 1999 Ethan Galstad\n");
226 printf (_(COPYRIGHT), copyright, email); 226 printf (COPYRIGHT, copyright, email);
227 227
228 printf (_("\ 228 printf (_("\
229This plugin tests an UDP connection with the specified host.\n\n")); 229This plugin tests an UDP connection with the specified host.\n\n"));