diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-24 00:46:40 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-11-24 00:46:40 +0000 |
commit | 0c1c9f51e2c33db04918d2aa322fd1f9a688979b (patch) | |
tree | c7956483bce0deb4b73ca3a6b9d0b7f2e97620db /plugins/check_fping.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_fping.c')
-rw-r--r-- | plugins/check_fping.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 1a536772..22f6b55d 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c | |||
@@ -80,7 +80,7 @@ main (int argc, char **argv) | |||
80 | /* run the command */ | 80 | /* run the command */ |
81 | child_process = spopen (command_line); | 81 | child_process = spopen (command_line); |
82 | if (child_process == NULL) { | 82 | if (child_process == NULL) { |
83 | printf (_("Unable to open pipe: %s\n"), command_line); | 83 | printf (_("Could not open pipe: %s\n"), command_line); |
84 | return STATE_UNKNOWN; | 84 | return STATE_UNKNOWN; |
85 | } | 85 | } |
86 | 86 | ||
@@ -254,9 +254,7 @@ process_arguments (int argc, char **argv) | |||
254 | break; | 254 | break; |
255 | case 'H': /* hostname */ | 255 | case 'H': /* hostname */ |
256 | if (is_host (optarg) == FALSE) { | 256 | if (is_host (optarg) == FALSE) { |
257 | printf (_("Invalid host name/address\n\n")); | 257 | usage2 (_("Invalid host name/address"), optarg); |
258 | print_usage (); | ||
259 | exit (STATE_UNKNOWN); | ||
260 | } | 258 | } |
261 | server_name = strscpy (server_name, optarg); | 259 | server_name = strscpy (server_name, optarg); |
262 | break; | 260 | break; |
@@ -362,8 +360,8 @@ print_help (void) | |||
362 | 360 | ||
363 | print_revision (progname, "$Revision$"); | 361 | print_revision (progname, "$Revision$"); |
364 | 362 | ||
365 | printf (_("Copyright (c) 1999 Didi Rieder <adrieder@sbox.tu-graz.ac.at>\n")); | 363 | printf ("Copyright (c) 1999 Didi Rieder <adrieder@sbox.tu-graz.ac.at>\n"); |
366 | printf (_(COPYRIGHT), copyright, email); | 364 | printf (COPYRIGHT, copyright, email); |
367 | 365 | ||
368 | printf (_("\ | 366 | printf (_("\ |
369 | This plugin will use the /bin/fping command (from saint) to ping the\n\ | 367 | This plugin will use the /bin/fping command (from saint) to ping the\n\ |