diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-24 00:46:40 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-24 00:46:40 (GMT) |
commit | 0c1c9f51e2c33db04918d2aa322fd1f9a688979b (patch) | |
tree | c7956483bce0deb4b73ca3a6b9d0b7f2e97620db /plugins/check_smtp.c | |
parent | 589d4664919638bedd6e2e1710c323887d19584a (diff) | |
download | monitoring-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_smtp.c')
-rw-r--r-- | plugins/check_smtp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index f6f347c..ae3f88b 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
@@ -292,7 +292,7 @@ process_arguments (int argc, char **argv) | |||
292 | server_address = optarg; | 292 | server_address = optarg; |
293 | } | 293 | } |
294 | else { | 294 | else { |
295 | usage (_("Invalid host name\n")); | 295 | usage2 (_("Invalid host name"), optarg); |
296 | } | 296 | } |
297 | break; | 297 | break; |
298 | case 'p': /* port */ | 298 | case 'p': /* port */ |
@@ -384,7 +384,7 @@ process_arguments (int argc, char **argv) | |||
384 | if (is_host (argv[c])) | 384 | if (is_host (argv[c])) |
385 | server_address = argv[c]; | 385 | server_address = argv[c]; |
386 | else | 386 | else |
387 | usage (_("Invalid host name")); | 387 | usage2 (_("Invalid host name"), argv[c]); |
388 | } | 388 | } |
389 | else { | 389 | else { |
390 | asprintf (&server_address, "127.0.0.1"); | 390 | asprintf (&server_address, "127.0.0.1"); |
@@ -426,8 +426,8 @@ print_help (void) | |||
426 | 426 | ||
427 | print_revision (progname, revision); | 427 | print_revision (progname, revision); |
428 | 428 | ||
429 | printf (_("Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n")); | 429 | printf ("Copyright (c) 1999-2001 Ethan Galstad <nagios@nagios.org>\n"); |
430 | printf (_(COPYRIGHT), copyright, email); | 430 | printf (COPYRIGHT, copyright, email); |
431 | 431 | ||
432 | printf(_("\ | 432 | printf(_("\ |
433 | This plugin will attempt to open an SMTP connection with the host.\n\n")); | 433 | This plugin will attempt to open an SMTP connection with the host.\n\n")); |