summaryrefslogtreecommitdiffstats
path: root/plugins/check_game.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 (GMT)
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 (GMT)
commite9ccc6b21a1152bbf150302c4a29a6df79d75bd7 (patch)
tree91bf1ebb6f927fd628b298df2ac5a89580282591 /plugins/check_game.c
parent71656b2aafffb69716620bf08cce76c925dc8fa3 (diff)
downloadmonitoring-plugins-e9ccc6b21a1152bbf150302c4a29a6df79d75bd7.tar.gz
various fixes for localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_game.c')
-rw-r--r--plugins/check_game.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/plugins/check_game.c b/plugins/check_game.c
index 6699c71..05b363a 100644
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
@@ -123,15 +123,15 @@ main (int argc, char **argv)
123 } 123 }
124 124
125 if (strstr (ret[2], QSTAT_HOST_ERROR)) { 125 if (strstr (ret[2], QSTAT_HOST_ERROR)) {
126 printf ("CRITICAL - Host not found\n"); 126 printf (_("CRITICAL - Host not found\n"));
127 result = STATE_CRITICAL; 127 result = STATE_CRITICAL;
128 } 128 }
129 else if (strstr (ret[2], QSTAT_HOST_DOWN)) { 129 else if (strstr (ret[2], QSTAT_HOST_DOWN)) {
130 printf ("CRITICAL - Game server down or unavailable\n"); 130 printf (_("CRITICAL - Game server down or unavailable\n"));
131 result = STATE_CRITICAL; 131 result = STATE_CRITICAL;
132 } 132 }
133 else if (strstr (ret[2], QSTAT_HOST_TIMEOUT)) { 133 else if (strstr (ret[2], QSTAT_HOST_TIMEOUT)) {
134 printf ("CRITICAL - Game server timeout\n"); 134 printf (_("CRITICAL - Game server timeout\n"));
135 result = STATE_CRITICAL; 135 result = STATE_CRITICAL;
136 } 136 }
137 else { 137 else {
@@ -156,7 +156,6 @@ main (int argc, char **argv)
156} 156}
157 157
158 158
159
160int 159int
161process_arguments (int argc, char **argv) 160process_arguments (int argc, char **argv)
162{ 161{
@@ -199,9 +198,7 @@ process_arguments (int argc, char **argv)
199 198
200 switch (c) { 199 switch (c) {
201 case '?': /* args not parsable */ 200 case '?': /* args not parsable */
202 printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); 201 usage2 (_("Unknown argument"), optarg);
203 print_usage ();
204 exit (STATE_UNKNOWN);
205 case 'h': /* help */ 202 case 'h': /* help */
206 print_help (); 203 print_help ();
207 exit (STATE_OK); 204 exit (STATE_OK);
@@ -269,6 +266,7 @@ process_arguments (int argc, char **argv)
269 return validate_arguments (); 266 return validate_arguments ();
270} 267}
271 268
269
272int 270int
273validate_arguments (void) 271validate_arguments (void)
274{ 272{
@@ -291,9 +289,6 @@ validate_arguments (void)
291} 289}
292 290
293 291
294
295
296
297void 292void
298print_help (void) 293print_help (void)
299{ 294{