diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-01 23:54:51 (GMT) |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-01 23:54:51 (GMT) |
commit | d19edd4043c498626fe68308005947975ef0a697 (patch) | |
tree | 7a213ee16f9331e928b1c32aa6c521c05519db58 /plugins/check_nagios.c | |
parent | 1d8128e328f714258b7fec0c62245e1d187e0439 (diff) | |
download | monitoring-plugins-d19edd4043c498626fe68308005947975ef0a697.tar.gz |
standardize localization string
standardize unknow arguments
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@969 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_nagios.c')
-rw-r--r-- | plugins/check_nagios.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index d9d18d9..4439251 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c | |||
@@ -14,6 +14,8 @@ | |||
14 | along with this program; if not, write to the Free Software | 14 | along with this program; if not, write to the Free Software |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
16 | 16 | ||
17 | $Id$ | ||
18 | |||
17 | ******************************************************************************/ | 19 | ******************************************************************************/ |
18 | 20 | ||
19 | const char *progname = "check_nagios"; | 21 | const char *progname = "check_nagios"; |
@@ -64,7 +66,7 @@ main (int argc, char **argv) | |||
64 | textdomain (PACKAGE); | 66 | textdomain (PACKAGE); |
65 | 67 | ||
66 | if (process_arguments (argc, argv) == ERROR) | 68 | if (process_arguments (argc, argv) == ERROR) |
67 | usage (_("Could not parse arguments\n")); | 69 | usage (_("check_nagios: could not parse arguments\n")); |
68 | 70 | ||
69 | /* Set signal handling and alarm */ | 71 | /* Set signal handling and alarm */ |
70 | if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) { | 72 | if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) { |
@@ -78,7 +80,7 @@ main (int argc, char **argv) | |||
78 | /* open the status log */ | 80 | /* open the status log */ |
79 | fp = fopen (status_log, "r"); | 81 | fp = fopen (status_log, "r"); |
80 | if (fp == NULL) { | 82 | if (fp == NULL) { |
81 | printf (_("Error: Cannot open status log for reading!\n")); | 83 | printf (_("ERROR - Cannot open status log for reading!\n")); |
82 | return STATE_CRITICAL; | 84 | return STATE_CRITICAL; |
83 | } | 85 | } |
84 | 86 | ||
@@ -178,8 +180,6 @@ main (int argc, char **argv) | |||
178 | 180 | ||
179 | 181 | ||
180 | 182 | ||
181 | |||
182 | |||
183 | /* process command-line arguments */ | 183 | /* process command-line arguments */ |
184 | int | 184 | int |
185 | process_arguments (int argc, char **argv) | 185 | process_arguments (int argc, char **argv) |
@@ -264,9 +264,6 @@ process_arguments (int argc, char **argv) | |||
264 | 264 | ||
265 | 265 | ||
266 | 266 | ||
267 | |||
268 | |||
269 | |||
270 | void | 267 | void |
271 | print_help (void) | 268 | print_help (void) |
272 | { | 269 | { |
@@ -302,7 +299,6 @@ Example:\n\ | |||
302 | 299 | ||
303 | 300 | ||
304 | 301 | ||
305 | |||
306 | void | 302 | void |
307 | print_usage (void) | 303 | print_usage (void) |
308 | { | 304 | { |